Restore orignals conf files which have been replaced by Alternc when uninstalling it

This commit is contained in:
Axel ROGER 2012-08-25 16:02:42 +00:00
parent 1fe318c850
commit 352bf1561f
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ case "$1" in
#rm -rf /var/alternc/apacheconf /var/alternc/cgi-bin /var/alternc/bureau /var/alternc/exec.usr /var/alternc/mla /var/alternc/redir /var/alternc/tmp /var/log/alternc
rm -f /etc/apache*/conf.d/override_php.conf /etc/apache*/conf.d/alternc-ssl.conf /etc/apache*/conf.d/alternc.conf
rm -f /etc/php*/conf.d/alternc.ini
# Restore orignals conf files which have been replaced by Alternc
# With the oldest tar found
$BACKUP=$(ls /var/backups/alternc/etc-original*.tar.gz | head -n 1)
tar -C / -xf "$BACKUP" 2>/dev/null || true
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
;;