Commit 8824de06 authored by anarcat's avatar anarcat

fix #2002076 - parse drush backend packets properly in package

it seems that those packets are sent to stderr, so we merge stderr
into stdout. we also pass the --debug flag to backend-parse so that it
actually shows the debug output when debugging is enabled
parent ac0d1c17
......@@ -105,8 +105,11 @@ case "$1" in
exit 1
fi
echo "installing the Aegir frontend (Drupal with the hostmaster profile), please wait..."
if [ "$DPKG_DEBUG" = "developer" ]; then
DEBUG="--debug"
fi
# pass data through JSON for extra security
su -s /bin/sh aegir -c "cd $VARLIB && drush hostmaster-install $FLAGS --backend $site_uri | drush backend-parse" <<EOF
su -s /bin/sh aegir -c "cd $VARLIB && drush hostmaster-install $FLAGS --backend $site_uri 2>&1 | drush backend-parse $DEBUG" <<EOF
{ "yes": 1,
"version": "$VERSION",
"aegir_db_host": "$AEGIR_DB_HOST",
......
Markdown is supported
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