From 0d5845fc5b5fe2acdbe2726414cb29e16eb5587b Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Mon, 12 May 2008 20:12:10 +1200 Subject: [PATCH] Ensure postinst works idempotently. --- debian/rscds.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rscds.postinst b/debian/rscds.postinst index 66fc27aa..f9c7f94d 100644 --- a/debian/rscds.postinst +++ b/debian/rscds.postinst @@ -9,7 +9,7 @@ PACKAGE=::package:: # # Migrate directory location to /etc/davical from /etc/rscds # -if [ -d /etc/rscds -a -d /etc/davical ]; then +if [ -d /etc/rscds -a -d /etc/davical -a ! -h /etc/rscds ]]; then for CNFFILE in /etc/rscds/*; do if [ -f "${CNFFILE}" ]; then mv "${CNFFILE}" /etc/davical