do not install lam.conf if other config files exist
This commit is contained in:
parent
c2a8501cac
commit
023d5c833c
|
@ -51,9 +51,12 @@ 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
|
||||||
if [ ! -f /var/lib/ldap-account-manager/config/lam.conf ]; \
|
ls -l /var/lib/ldap-account-manager/config/*.conf &> /dev/null
|
||||||
then cp /var/lib/ldap-account-manager/config/unix.conf.sample /var/lib/ldap-account-manager/config/lam.conf; \
|
cfgFilesExist=$?
|
||||||
chown www-data /var/lib/ldap-account-manager/config/lam.conf; fi
|
if [ $cfgFilesExist != 0 ]; then
|
||||||
|
cp /var/lib/ldap-account-manager/config/unix.conf.sample /var/lib/ldap-account-manager/config/lam.conf;
|
||||||
|
chown www-data /var/lib/ldap-account-manager/config/lam.conf;
|
||||||
|
fi
|
||||||
chmod 600 /var/lib/ldap-account-manager/config/*.conf
|
chmod 600 /var/lib/ldap-account-manager/config/*.conf
|
||||||
if [ "$1" = "configure" ]; then
|
if [ "$1" = "configure" ]; then
|
||||||
db_get "ldap-account-manager/alias"
|
db_get "ldap-account-manager/alias"
|
||||||
|
|
Loading…
Reference in New Issue