aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-11-07 13:07:26 +0100
committerintrigeri <intrigeri@boum.org>2010-11-07 13:07:26 +0100
commit13f247afebde199ffb03d23e8662d362d5681ca6 (patch)
treeb8858b83adc18b09e3822f78f517473a09d45878 /handlers/mysql.in
parent0b60b58153f352e6f0c7e8f52b0824720c2a4c05 (diff)
downloadbackupninja-13f247afebde199ffb03d23e8662d362d5681ca6.tar.gz
backupninja-13f247afebde199ffb03d23e8662d362d5681ca6.tar.bz2
Fix reliance on bash for pipefail. (Closes: #602374)
Thanks to Sergio Talens-Oliag <sto@debian.org> for the bug report and patch.
Diffstat (limited to 'handlers/mysql.in')
-rw-r--r--handlers/mysql.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in
index 0282046..05ea396 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -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