diff options
author | intrigeri <intrigeri@boum.org> | 2010-11-07 13:07:26 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-11-07 13:07:26 +0100 |
commit | 13f247afebde199ffb03d23e8662d362d5681ca6 (patch) | |
tree | b8858b83adc18b09e3822f78f517473a09d45878 /handlers/ldap.in | |
parent | 0b60b58153f352e6f0c7e8f52b0824720c2a4c05 (diff) | |
download | backupninja-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.in | 2 |
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 |