summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-06-03 21:34:26 +0200
committerDaniel Baumann <daniel@debian.org>2012-06-03 21:36:58 +0200
commit4c903bab69b24f2a79cafc262273229a1b108044 (patch)
tree002d1d6d0c0d7edb22689aba577f36198f81bf94 /debian
parent5de395751e94af55925a40ccf8c303af9ab9ed66 (diff)
downloadvyos-live-build-4c903bab69b24f2a79cafc262273229a1b108044.tar.gz
vyos-live-build-4c903bab69b24f2a79cafc262273229a1b108044.zip
Removing some more configuration files on purge (Closes: #672379).
Diffstat (limited to 'debian')
-rw-r--r--debian/live-build-cron.postrm27
1 files changed, 16 insertions, 11 deletions
diff --git a/debian/live-build-cron.postrm b/debian/live-build-cron.postrm
index f38627677..6b7eeb69b 100644
--- a/debian/live-build-cron.postrm
+++ b/debian/live-build-cron.postrm
@@ -2,21 +2,26 @@
set -e
-_DIRECTORY="/srv/debian.net/live-manual"
-
case "${1}" in
- remove)
- if [ -d "${_DIRECTORY}" ]
- then
- rmdir --ignore-fail-on-non-empty "${_DIRECTORY}" || true
- fi
- ;;
-
purge)
- #rm -rf "${_DIRECTORY}"
+ # images
+ rm -f /etc/live/build-cron.d/images.conf
+ rmdir --ignore-fail-on-non-empty /etc/live/build-cron.d 2>&1 || true
+ rmdir --ignore-fail-on-non-empty /etc/live 2>&1 || true
+
+ rm -f /etc/cron.d/live-build-cron-manual
+ rmdir --ignore-fail-on-non-empty /etc/cron.d/live-build-cron-manual 2>&1 || true
+
+ # manual
+ rm -f /etc/live/build-cron.d/manual.conf
+ rmdir --ignore-fail-on-non-empty /etc/live/build-cron.d 2>&1 || true
+ rmdir --ignore-fail-on-non-empty /etc/live 2>&1 || true
+
+ rm -f /etc/cron.d/live-build-cron-images
+ rmdir --ignore-fail-on-non-empty /etc/cron.d/live-build-cron-images 2>&1 || true
;;
- upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;