Commit ca169f43 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

pass the mysql root password security through STDIN

parent 8a158fd6
......@@ -5,10 +5,7 @@ Critical stuff
This shouldn't be used or published until this is fixed.
* don't show the mysql root password on the commandline
this can be done by making hostmaster-install respect existing
contexts or by passing the password through a third file
descriptors, like we do for mysql
* (nil)
Nice to have stuff
......@@ -112,7 +112,16 @@ case "$1" in
echo "existing provision in $VARLIB/.drush/provision detected, move away and try again"
exit 1
su aegir -c "drush hostmaster-install --yes --version='$VERSION' --aegir_db_host='$AEGIR_DB_HOST' --aegir_db_user='$AEGIR_DB_USER' --aegir_db_pass='$AEGIR_DB_PASS' --client_email='$EMAIL' $MAKEFILE $SITE"
# pass data through JSON
su aegir -c "drush hostmaster-install --backend $MAKEFILE $SITE | drush backend-parse" <<EOF
{ "yes": 1,
"version": "$VERSION",
"aegir_db_host": "$AEGIR_DB_HOST",
"aegir_db_user": "$AEGIR_DB_USER",
"aegir_db_pass": "$AEGIR_DB_PASS",
"client_email": "$EMAIL"
ln -sf $VARLIB/config/apache.conf /etc/apache2/conf.d/aegir.conf
apache2ctl graceful
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment