new.sh: remove some extra indentation int he bootstrap.conf template
[drupal-init-tools.git] / libexec / new.sh
index bc88c00..a54abdd 100755 (executable)
@@ -60,7 +60,7 @@ command -v git &> /dev/null || { echo "Aborting, 'git' not available." 1>&2; exi
 echo "Creating a new Drupal project..."
 composer create-project drupal-composer/drupal-project:8.x-dev@dev "$DESTDIR" --keep-vcs --stability dev --no-interaction
 
-pushd "$DESTDIR"
+pushd "$DESTDIR" > /dev/null
 
 git remote rename origin upstream
 git checkout -b master
@@ -104,12 +104,23 @@ cat > bootstrap.conf <<EOF
 #  "localhost"
 #  "ip4-localhost"
 #  "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
@@ -129,4 +140,4 @@ echo
 echo "Double check the provided .htaccess file to make sure that access to"
 echo "'$PWD' is restricted by the web server."
 
-popd
+popd > /dev/null