summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarracuda Team2013-04-14 00:29:21 (GMT)
committer Barracuda Team2013-04-14 00:29:21 (GMT)
commitcb82f3849ab71aea83d6fb121dd0472a810b3277 (patch)
tree91b9a3bb2126629b19976f852ab7473bb1b8b5d1
parentd58fc0bb29e52d384a441989c54a3e68c02f59e5 (diff)
Run all Drush commands with correct user on Satellite Instance upgrade.
-rw-r--r--aegir/scripts/AegirSetupA.sh.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/aegir/scripts/AegirSetupA.sh.txt b/aegir/scripts/AegirSetupA.sh.txt
index 296e96a..a11d5c2 100644
--- a/aegir/scripts/AegirSetupA.sh.txt
+++ b/aegir/scripts/AegirSetupA.sh.txt
@@ -896,7 +896,7 @@ provision_backend_dbpass_sync () {
fi
mysqladmin flush-privileges &> /dev/null
if [ "$_USE_STOCK" = "YES" ] || [ "$_DRUSH_CC_REQ" = "YES" ] ; then
- $_DRUSHCMD cache-clear drush &> /dev/null
+ su -s /bin/bash $_USER -c "$_DRUSHCMD cache-clear drush &> /dev/null"
fi
if [ -e "$_ROOT/.drush/server_localhost.alias.drushrc.php" ] ; then
su -s /bin/bash $_USER -c "$_DRUSHCMD @hostmaster hosting-task @server_localhost verify --force &> /dev/null"
@@ -904,13 +904,13 @@ provision_backend_dbpass_sync () {
su -s /bin/bash $_USER -c "$_DRUSHCMD @hostmaster hosting-task @server_master verify --force &> /dev/null"
fi
msg "$_STATUS A: Running hosting-dispatch (1/3), please wait..."
- $_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null
+ su -s /bin/bash $_USER -c "$_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null"
mrun "sleep 5"
msg "$_STATUS A: Running hosting-dispatch (2/3), please wait..."
- $_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null
+ su -s /bin/bash $_USER -c "$_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null"
mrun "sleep 5"
msg "$_STATUS A: Running hosting-dispatch (3/3), please wait..."
- $_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null
+ su -s /bin/bash $_USER -c "$_DRUSHCMD '@hostmaster' hosting-dispatch &> /dev/null"
}
#
# Sync hostmaster frontend db_passwd.