Restore orignals conf files which have been replaced by Alternc when uninstalling it
This commit is contained in:
parent
1fe318c850
commit
352bf1561f
|
@ -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)
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue