summaryrefslogtreecommitdiffstats
path: root/cron-jobs/adjust-permissions
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-02 07:45:38 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-09-02 08:15:01 +0200
commitdf78f6e877325ddfd9569e9704612ee2509791b1 (patch)
tree0b37d1fe9881dec458f3ab0cdfd04059febbcb17 /cron-jobs/adjust-permissions
parent328b1ce478e25902aba5d8f19024dadeaaf3f678 (diff)
downloaddbscripts-df78f6e877325ddfd9569e9704612ee2509791b1.tar.gz
dbscripts-df78f6e877325ddfd9569e9704612ee2509791b1.tar.xz
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 <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'cron-jobs/adjust-permissions')
-rwxr-xr-xcron-jobs/adjust-permissions23
1 files 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
}