Commit d376f990 authored by anarcat's avatar anarcat
Browse files

call su with an explicit shell as we may not have one

parent 8225fd16
......@@ -5,7 +5,7 @@ set -e
# Source debconf library.
. /usr/share/debconf/confmodule
if su aegir -c 'drush @hostmaster status' | grep -q 'Drupal bootstrap.*Successful'; then
if su -s /bin/sh aegir -c 'drush @hostmaster status' | grep -q 'Drupal bootstrap.*Successful'; then
# there's already an install, do not go around asking silly questions
exit 0
fi
......
......@@ -30,7 +30,7 @@ case "$1" in
VERSION=`sed -n '/^version/{s/^.*= *//;p}' /usr/share/drush/commands/provision/provision.info`
TEMPFILE=`tempfile`
su aegir -c 'drush @hostmaster status' >> $TEMPFILE || true
su -s /bin/sh aegir -c 'drush @hostmaster status' >> $TEMPFILE || true
if grep -q 'Drupal bootstrap.*Successful' $TEMPFILE; then
db_stop
echo "Aegir frontend (@hostmaster) site detected"
......@@ -42,7 +42,7 @@ case "$1" in
else
echo "upgrading the frontend from $OLD_PLATFORM to $NEW_PLATFORM"
cd "$OLD_PLATFORM"
su aegir -c "drush hostmaster-migrate --yes '$SITE' '$NEW_PLATFORM'"
su -s /bin/sh aegir -c "drush hostmaster-migrate --yes '$SITE' '$NEW_PLATFORM'"
fi
else
db_get "aegir/site"
......
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