clear old links

This commit is contained in:
Roland Gruber 2019-03-25 20:25:49 +01:00
parent c253c67af5
commit 3d0a53cb07
2 changed files with 17 additions and 1 deletions

View File

@ -50,7 +50,7 @@ if [ -f /usr/share/debconf/confmodule ]; then
fi
# 3rd party libs
phpThirdPartyLibs='phpseclib tcpdf'
phpThirdPartyLibs='phpseclib tcpdf Monolog Psr'
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}

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
if [ "$1" != "upgrade" ]; then
exit 0
fi
# 3rd party libs
phpThirdPartyLibs='phpseclib tcpdf Monolog Psr'
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