create-profile.sh: fix also the submit callback when creating a new profile
[drupal-init-tools.git] / libexec / new.sh
index 0259f4e..890b1d0 100755 (executable)
@@ -65,10 +65,8 @@ pushd "$DESTDIR"
 git remote rename origin upstream
 git checkout -b master
 
-# Add some patches, use sed until composer can do that from the command line
-# (e.g. composer config ...)
-sed -i -e 's@"extra": {@"extra": {\
-        "patches-file": "composer.patches.json",@' composer.json
+# Add some patches
+composer config extra.patches-file "composer.patches.json"
 
 cat > composer.patches.json <<EOF
 {
@@ -108,10 +106,21 @@ cat > bootstrap.conf <<EOF
 #  "ip6-localhost"
 #  )
 
-#MYSQL_ROOT_PASSWORD="password"
+# See the 'drin' man page for details about database access.
+
+# Set MYSQL_PASSWORDLESS_ACCESS to 'true' if the database is configured to
+# allow administrative password-less access to the user who will execute the
+# 'drin boostrap' command.
+#MYSQL_PASSWORDLESS_ACCESS=true
+
+# If, instead,  administrative access requires a password, uncomment and
+# change the values of the following variables.
+#MYSQL_SU_USER='root'
+#MYSQL_SU_PASSWORD='password'
 EOF
 
-cat > .gitignore <<EOF
+cat >> .gitignore <<EOF
+
 # Ignore the configuration for the bootstrap script
 bootstrap.conf
 EOF