fixed install issue

This commit is contained in:
Roland Gruber 2019-12-15 17:30:00 +01:00
parent 1d4bdd7156
commit 8abd515ac6
1 changed files with 12 additions and 9 deletions

View File

@ -36,12 +36,15 @@ files=`ls -a *.jpg`
for file in $files; do for file in $files; do
cp $file /var/lib/ldap-account-manager/config/templates/pdf/logos/$file cp $file /var/lib/ldap-account-manager/config/templates/pdf/logos/$file
done done
if [ ! -h /usr/share/ldap-account-manager/config ]; then\ if [ ! -h /usr/share/ldap-account-manager/config ]; then
ln -s /var/lib/ldap-account-manager/config /usr/share/ldap-account-manager/config; fi ln -s /var/lib/ldap-account-manager/config /usr/share/ldap-account-manager/config
if [ ! -h /usr/share/ldap-account-manager/sess ]; then\ fi
ln -s /var/lib/ldap-account-manager/sess /usr/share/ldap-account-manager/sess; fi if [ ! -h /usr/share/ldap-account-manager/sess ]; then
if [ ! -h /usr/share/ldap-account-manager/tmp ]; then\ ln -s /var/lib/ldap-account-manager/sess /usr/share/ldap-account-manager/sess
ln -s /var/lib/ldap-account-manager/tmp /usr/share/ldap-account-manager/tmp; fi fi
if [ ! -h /usr/share/ldap-account-manager/tmp ]; then
ln -s /var/lib/ldap-account-manager/tmp /usr/share/ldap-account-manager/tmp
fi
chown www-data /etc/ldap-account-manager/config.cfg chown www-data /etc/ldap-account-manager/config.cfg
chmod 600 /etc/ldap-account-manager/config.cfg chmod 600 /etc/ldap-account-manager/config.cfg
chown www-data /var/lib/ldap-account-manager/sess chown www-data /var/lib/ldap-account-manager/sess
@ -55,9 +58,9 @@ 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 set -e
cfgFilesExist=$? cfgFilesExist=$?
if [ $cfgFilesExist != 0 ]; then if [ $cfgFilesExist -ne 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
chown www-data /var/lib/ldap-account-manager/config/lam.conf; chown www-data /var/lib/ldap-account-manager/config/lam.conf
fi 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