| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
if [ "$1" != "upgrade" ]; then |
| 6 |
exit 0 |
| 7 |
fi |
| 8 |
|
| 9 |
# 3rd party libs |
| 10 |
jsThirdPartyLibs='ckeditor jstree' |
| 11 |
for jsThirdPartyLib in $jsThirdPartyLibs; do |
| 12 |
if [ -L /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib} ] ; then |
| 13 |
rm /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib} |
| 14 |
fi |
| 15 |
done |
| 16 |
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/composer/phpseclib/phpseclib/phpseclib ] ; then |
| 17 |
rm /usr/share/ldap-account-manager/lib/3rdParty/composer/phpseclib/phpseclib/phpseclib |
| 18 |
fi |
| 19 |
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/composer/monolog/monolog/src/Monolog ] ; then |
| 20 |
rm /usr/share/ldap-account-manager/lib/3rdParty/composer/monolog/monolog/src/Monolog |
| 21 |
fi |
| 22 |
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/composer/psr/log/Psr ] ; then |
| 23 |
rm /usr/share/ldap-account-manager/lib/3rdParty/composer/psr/log/Psr |
| 24 |
fi |
| 25 |
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/composer/voku/portable-ascii/src/voku ] ; then |
| 26 |
rm /usr/share/ldap-account-manager/lib/3rdParty/composer/voku/portable-ascii/src/voku |
| 27 |
fi |
| 28 |
if [ -L /usr/share/ldap-account-manager/lib/3rdParty/composer/phpmailer/phpmailer ] ; then |
| 29 |
rm /usr/share/ldap-account-manager/lib/3rdParty/composer/phpmailer/phpmailer |
| 30 |
fi |
| 31 |
|
| 32 |
#DEBHELPER# |