From df78f6e877325ddfd9569e9704612ee2509791b1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 2 Sep 2010 00:45:38 -0500 Subject: Simplify case statement Don't duplicate the user:group pair all over the place; put all of the associated repos and directories in the same case statement for a given set of credentials. Signed-off-by: Dan McGee Signed-off-by: Pierre Schmitz --- cron-jobs/adjust-permissions | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/cron-jobs/adjust-permissions b/cron-jobs/adjust-permissions index e0b6e4e..6510d79 100755 --- a/cron-jobs/adjust-permissions +++ b/cron-jobs/adjust-permissions @@ -7,30 +7,17 @@ script_lock get_dir_owner() { case $1 in + # on main server, e.g. gerolde core) echo "ftp:ftp-arch" ;; - extra) + extra|testing|staging|kde-unstable|gnome-unstable|pool/packages) echo "ftp:ftp-extra" ;; - testing) - echo "ftp:ftp-extra" ;; - staging) - echo "ftp:ftp-extra" ;; - kde-unstable) - echo "ftp:ftp-extra" ;; - gnome-unstable) - echo "ftp:ftp-extra" ;; - community) - echo "root:tusers" ;; - community-testing) - echo "root:tusers" ;; - community-staging) + + # on community server, e.g. sigurd + community|community-testing|community-staging|pool/community) echo "root:tusers" ;; multilib) echo "root:multilib" ;; - pool/packages) - echo "ftp:ftp-extra" ;; - pool/community) - echo "root:tusers" ;; esac } -- cgit v1.2.3