aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-05-15 19:29:28 +0200
committerintrigeri <intrigeri@boum.org>2011-05-15 19:29:28 +0200
commit7757ab245ae9397136b4cdff4f98e4a7cca7dc21 (patch)
tree96716645748d2bd6734df5483002047f21b69118 /handlers/mysql.in
parentbacaea7ad6a275db9b633c25afbc19f559b97c65 (diff)
parent69c0ec09c5e5eb9e166bc0f5c9a1ef702d0150d6 (diff)
downloadbackupninja-7757ab245ae9397136b4cdff4f98e4a7cca7dc21.tar.gz
backupninja-7757ab245ae9397136b4cdff4f98e4a7cca7dc21.tar.bz2
Merge commit 'backupninja-0.9.9' into debian
Diffstat (limited to 'handlers/mysql.in')
-rw-r--r--handlers/mysql.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in
index 0282046..185a98a 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -24,8 +24,8 @@ getconf configfile /etc/mysql/debian.cnf
# Decide if the handler should operate on a vserver or on the host.
# In the former case, check that $vsname exists and is running.
-local usevserver=no
-local vroot
+usevserver=no
+vroot=''
if [ $vservers_are_available = yes ]; then
if [ -n "$vsname" ]; then
# does it exist ?
@@ -303,7 +303,7 @@ then
debug "su $user -c \"$execstr\""
if [ ! $test ]
then
- output=`su $user -c "set -o pipefail ; $execstr" 2>&1`
+ output=`su $user -s /bin/bash -c "set -o pipefail ; $execstr" 2>&1`
code=$?
if [ "$code" == "0" ]
then