fixed set -e issue
This commit is contained in:
parent
c6bb9d5b22
commit
1d4bdd7156
|
@ -51,7 +51,9 @@ chown www-data /var/lib/ldap-account-manager/tmp/internal
|
||||||
chmod 700 /var/lib/ldap-account-manager/tmp
|
chmod 700 /var/lib/ldap-account-manager/tmp
|
||||||
chown -R www-data /var/lib/ldap-account-manager/config
|
chown -R www-data /var/lib/ldap-account-manager/config
|
||||||
chmod 700 /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
|
ls -l /var/lib/ldap-account-manager/config/*.conf &> /dev/null
|
||||||
|
set -e
|
||||||
cfgFilesExist=$?
|
cfgFilesExist=$?
|
||||||
if [ $cfgFilesExist != 0 ]; then
|
if [ $cfgFilesExist != 0 ]; then
|
||||||
cp /var/lib/ldap-account-manager/config/unix.conf.sample /var/lib/ldap-account-manager/config/lam.conf;
|
cp /var/lib/ldap-account-manager/config/unix.conf.sample /var/lib/ldap-account-manager/config/lam.conf;
|
||||||
|
|
Loading…
Reference in New Issue