Only remove /etc/alternc files when Alternc purged
This commit is contained in:
parent
352bf1561f
commit
c77b6df3ff
|
@ -8,31 +8,31 @@ remove)
|
||||||
# remove postfix from the sasl group (might not be user will though...)
|
# remove postfix from the sasl group (might not be user will though...)
|
||||||
deluser --quiet postfix sasl || true
|
deluser --quiet postfix sasl || true
|
||||||
|
|
||||||
if [ -r "/etc/alternc/local.sh" ]
|
#if [ -r "/etc/alternc/local.sh" ]
|
||||||
then
|
#then
|
||||||
. /etc/alternc/local.sh
|
# . /etc/alternc/local.sh
|
||||||
else
|
#else
|
||||||
FQDN="`hostname --fqdn`"
|
# FQDN="`hostname --fqdn`"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
|
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
|
||||||
rm -rf /var/alternc/bureau/locales || true
|
#rm -rf /var/alternc/bureau/locales || true
|
||||||
rmdir -p /var/alternc/bureau 2> /dev/null || true
|
#rmdir -p /var/alternc/bureau 2> /dev/null || true
|
||||||
rm -f /var/alternc/dns/bureau || true
|
#rm -f /var/alternc/dns/bureau || true
|
||||||
rm -f /var/alternc/dns/$FQDN_LETTER/$FQDN || true
|
#rm -f /var/alternc/dns/$FQDN_LETTER/$FQDN || true
|
||||||
rmdir -p /var/alternc/html/a/admin 2> /dev/null || true
|
#rmdir -p /var/alternc/html/a/admin 2> /dev/null || true
|
||||||
rmdir -p /var/alternc/html/r/root 2> /dev/null || true
|
#rmdir -p /var/alternc/html/r/root 2> /dev/null || true
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upgrade)
|
upgrade)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
purge)
|
purge)
|
||||||
find /var/alternc/bureau/locales -type f -name "alternc.mo" -exec rm {} \;
|
#find /var/alternc/bureau/locales -type f -name "alternc.mo" -exec rm {} \;
|
||||||
find /var/alternc/bureau/locales -type f -name "alternc" -exec rm {} \;
|
#find /var/alternc/bureau/locales -type f -name "alternc" -exec rm {} \;
|
||||||
rm /var/alternc/bureau/class/local.php
|
#rm /var/alternc/bureau/class/local.php
|
||||||
rm -f /var/alternc/apacheconf/bureau
|
#rm -f /var/alternc/apacheconf/bureau
|
||||||
rm -f /var/alternc/apacheconf/$FQDN_LETTER/$FQDN
|
#rm -f /var/alternc/apacheconf/$FQDN_LETTER/$FQDN
|
||||||
;;
|
;;
|
||||||
|
|
||||||
failed-upgrade|abort-install|abort-upgrade|disappear)
|
failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
|
|
Loading…
Reference in New Issue