aboutsummaryrefslogtreecommitdiff
path: root/handlers/ldap.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/ldap.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/ldap.in')
-rw-r--r--handlers/ldap.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/ldap.in b/handlers/ldap.in
index 83307ee..600f172 100644
--- a/handlers/ldap.in
+++ b/handlers/ldap.in
@@ -91,7 +91,7 @@ if [ "$ldif" == "yes" ]; then
execstr="$execstr > $dumpdir/$dbsuffix.ldif"
fi
debug "$execstr"
- output=`su root -c "set -o pipefail ; $execstr" 2>&1`
+ output=`su root -s /bin/bash -c "set -o pipefail ; $execstr" 2>&1`
code=$?
if [ "$code" == "0" ]; then
debug $output