clean.sh: make sudo always ask for the password
[drupal-init-tools.git] / libexec / new.sh
index 0259f4e..7c4f1b6 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,7 +106,17 @@ 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