Removing the UUID out of your .yml files with a BASH script

Because we all hate monkey jobs

I have been working on a Drupal 8 multisite and at some point I had to set up a new site in the structure. The fastest approach was to copy the config .yml files of the first site.

An important step was to remove the UUID's in the config .yml files.

I made this small bash script to make my life (and yours) easy:

#!/bin/bash
FILES=/www/mywebsite/sites/default/config/sync/*
for f in $FILES
do
  echo "Processing $f .yml file"
  sed -i '' '/^uuid:/d' $f
done

Make sure you change the FILES variable to the path with your configuration files.

Drupal

Meer leesvoer

In this blog post you will learn how to add a theme field preprocess function in your theme.
Theming
In this blog post I show you how to login and logout from a Drupal 8 Back-end from an Ionic app
Drupal
It's quite easy to create a node with REST in Drupal 8, in this blog post I'll show you how to do it.
Drupal
Drupal 8.3-x-dev is out and it comes packed with improvements to the REST module. It's now possible to create new users using REST.
Drupal