cups: for now cups make a backup on uninstall

and a restore on install / update

The include file that was added in a previous commit allowed to manually
create a backup, but none was created when the addon was installed,
uninstalled or updated.

Signed-off-by: Daniel Weismueller <daniel.weismueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
This commit is contained in:
Daniel Weismueller
2022-04-28 16:24:16 +02:00
committed by Peter Müller
parent 01eb9debf3
commit 2a14689ba8
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup "${NAME}"
/etc/init.d/messagebus reload
start_service --delay 300 --background ${NAME}
ln -svf ../init.d/cups /etc/rc.d/rc0.d/K00cups

View File

@@ -23,6 +23,7 @@
#
. /opt/pakfire/lib/functions.sh
stop_service ${NAME}
make_backup "${NAME}"
remove_files
rm -rf /etc/rc.d/rc*.d/*cups
/etc/init.d/messagebus reload