fixed links

This commit is contained in:
Roland Gruber 2018-09-25 19:00:08 +02:00
parent 0b66a600a2
commit cfce928df4
2 changed files with 12 additions and 1 deletions

View File

@ -12,7 +12,9 @@ db_version 2.0 || [ $? -lt 30 ]
# 3rd party libs # 3rd party libs
phpThirdPartyLibs='phpseclib tcpdf' phpThirdPartyLibs='phpseclib tcpdf'
for phpThirdPartyLib in $phpThirdPartyLibs; do for phpThirdPartyLib in $phpThirdPartyLibs; do
ln -s /usr/share/php/${phpThirdPartyLib} /usr/share/ldap-account-manager/lib/3rdParty/${phpThirdPartyLib} if [ ! -L /usr/share/ldap-account-manager/lib/3rdParty/${phpThirdPartyLib} ] ; then
ln -s /usr/share/php/${phpThirdPartyLib} /usr/share/ldap-account-manager/lib/3rdParty/${phpThirdPartyLib}
fi
done done
cd /usr/share/ldap-account-manager/config-samples/profiles cd /usr/share/ldap-account-manager/config-samples/profiles

View File

@ -49,6 +49,15 @@ if [ -f /usr/share/debconf/confmodule ]; then
done done
fi fi
# 3rd party libs
phpThirdPartyLibs='phpseclib tcpdf'
for phpThirdPartyLib in $phpThirdPartyLibs; do
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/${phpThirdPartyLib} ] ; then
rm /usr/share/ldap-account-manager/lib/3rdParty/${phpThirdPartyLib}
fi
done
set -e set -e
if [ "$1" = "purge" ]; then if [ "$1" = "purge" ]; then
rm -r -f /usr/share/ldap-account-manager rm -r -f /usr/share/ldap-account-manager