From: Arne Fitzenreiter Date: Sun, 22 Dec 2024 16:48:00 +0000 (+0100) Subject: tftpd: leave /var/tftpboot at update or uninstall X-Git-Tag: v2.29-core191~14^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3523a9d7d5577909570d654540774cd8d9ab395;p=ipfire-2.x.git tftpd: leave /var/tftpboot at update or uninstall Signed-off-by: Arne Fitzenreiter --- diff --git a/src/paks/tftpd/uninstall.sh b/src/paks/tftpd/uninstall.sh index 20599489f7..f2cbc5589d 100644 --- a/src/paks/tftpd/uninstall.sh +++ b/src/paks/tftpd/uninstall.sh @@ -24,5 +24,7 @@ . /opt/pakfire/lib/functions.sh stop_service tftpd make_backup ${NAME} +# prevent erasing /var/tftpboot +sed -i '/^var\/tftpboot$/d' /opt/pakfire/db/rootfiles/tftpd remove_files rm -rf /etc/rc.d/rc*.d/*tftpd