mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
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:
committed by
Peter Müller
parent
01eb9debf3
commit
2a14689ba8
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user