]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
cups: for now cups make a backup on uninstall
authorDaniel Weismueller <daniel.weismueller@ipfire.org>
Thu, 28 Apr 2022 14:24:16 +0000 (16:24 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 2 May 2022 05:28:16 +0000 (05:28 +0000)
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>
src/paks/cups/install.sh
src/paks/cups/uninstall.sh

index b3f0f136803d76c74b2035199314977dc23cbcf5..cc586697197b00188a2239295f2b2afcfe984e7f 100644 (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
index 01b13de7649a4246e7ab488f2d84d677ef19447a..d4abdde63bf35f7f3b6ff78a12c79db442649a8f 100644 (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