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>
#
. /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
#
. /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