[Piuparts-commits] [piuparts] 04/12: rework pre_remove_50_find_bad_permissions

Holger Levsen holger at layer-acht.org
Thu Jan 12 16:58:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit e0794c0ffec612a5b64ea241a1b00435d04c2736
Author: Andreas Beckmann <anbe at debian.org>
Date:   Thu Jan 12 01:20:59 2017 +0100

    rework pre_remove_50_find_bad_permissions
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 .../scripts/pre_remove_50_find_bad_permissions     | 29 +++++++++-------------
 1 file changed, 12 insertions(+), 17 deletions(-)

diff --git a/custom-scripts/scripts/pre_remove_50_find_bad_permissions b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
index 457ddf8..febf4da 100755
--- a/custom-scripts/scripts/pre_remove_50_find_bad_permissions
+++ b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
@@ -17,14 +17,10 @@ lenny)
 ;;
 esac
 
-if	[ "$PIUPARTS_DISTRIBUTION" = "squeeze" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "squeeze/updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "squeeze-updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "squeeze-proposed-updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "squeeze-proposed" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "lenny" ]; then
+case "$PIUPARTS_DISTRIBUTION" in
+lenny|squeeze*)
 
-case ${PIUPARTS_OBJECTS%%=*} in
+    case ${PIUPARTS_OBJECTS%%=*} in
 	citadel-server|citadel-dbg|citadel-mta|citadel-suite|bcron-run|capisuite|debbugs|raccess4vbox3|smartlist|sxid)
 		#WORKSAROUND #684964: citadel-server: world writable config file: /etc/citadel/netconfigs/7
 		for file in /etc/citadel/netconfigs/7 /etc/citadel/refcount_adjustments.dat /etc/citadel/citadel.control
@@ -32,17 +28,15 @@ case ${PIUPARTS_OBJECTS%%=*} in
 			test ! -f "$file" || chmod -c o-w "$file"
 		done
 		;;
-esac
+    esac
 
-fi
+;;
+esac
 
-if	[ "$PIUPARTS_DISTRIBUTION" = "wheezy" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "wheezy/updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "wheezy-updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "wheezy-proposed-updates" ] || \
-	[ "$PIUPARTS_DISTRIBUTION" = "wheezy-proposed" ]; then
+case "$PIUPARTS_DISTRIBUTION" in
+wheezy*)
 
-case ${PIUPARTS_OBJECTS%%=*} in
+    case ${PIUPARTS_OBJECTS%%=*} in
 	citadel-server|citadel-dbg|citadel-mta|citadel-suite|bcron|bcron-run|capisuite|debbugs|exmh|nmh|raccess4vbox3|smartlist|xlbiff)
 		#WORKSAROUND #684964: citadel-server: world writable config file: /etc/citadel/netconfigs/7
 		for file in /etc/citadel/netconfigs/7 /etc/citadel/refcount_adjustments.dat /var/lib/citadel/data/refcount_adjustments.dat
@@ -50,9 +44,10 @@ case ${PIUPARTS_OBJECTS%%=*} in
 			test ! -f "$file" || chmod -c o-w "$file"
 		done
 		;;
-esac
+    esac
 
-fi
+;;
+esac
 
 case ${PIUPARTS_OBJECTS%%=*} in
 	gpe-tetris|gpe)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list