fixed set -e issue

This commit is contained in:
Roland Gruber 2019-12-15 17:18:50 +01:00
parent c6bb9d5b22
commit 1d4bdd7156
1 changed files with 2 additions and 0 deletions

View File

@ -51,7 +51,9 @@ chown www-data /var/lib/ldap-account-manager/tmp/internal
chmod 700 /var/lib/ldap-account-manager/tmp
chown -R www-data /var/lib/ldap-account-manager/config
chmod 700 /var/lib/ldap-account-manager/config
set +e
ls -l /var/lib/ldap-account-manager/config/*.conf &> /dev/null
set -e
cfgFilesExist=$?
if [ $cfgFilesExist != 0 ]; then
cp /var/lib/ldap-account-manager/config/unix.conf.sample /var/lib/ldap-account-manager/config/lam.conf;