diff --git a/debian/aegir3-hostmaster.postinst b/debian/aegir3-hostmaster.postinst index 57dd58de6fd34e80fd55c89d2bb8b5f685dad03f..4e7e2256c9668346a1af5d59e196e3b21de51771 100644 --- a/debian/aegir3-hostmaster.postinst +++ b/debian/aegir3-hostmaster.postinst @@ -58,8 +58,8 @@ case "$1" in # flush the drush cache to find new commands su -s /bin/sh aegir -c 'drush cc drush' - site_uri=`drush @hostmaster status --fields="uri" --field-labels=0 | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'` - drupal_root=`drush @hostmaster status --fields="root" --field-labels=0 | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'` + site_uri=`su -s /bin/sh aegir -c 'drush @hostmaster status --fields="uri" --field-labels=0 | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'` + drupal_root=`su -s /bin/sh aegir -c 'drush @hostmaster status --fields="root" --field-labels=0 | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'` if [ -n $drupal_root ]; then # upgrade