diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-17 21:32:08 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-17 21:32:08 +0200 |
commit | 66d12ed4b83d623cfbda06242982f73e50a78125 (patch) | |
tree | 633d7a2b78e363bc444dafc7f2b068fa0e349f43 | |
parent | 6226ceb54a363573eb18856c1d935197fffbc334 (diff) | |
download | dbscripts-66d12ed4b83d623cfbda06242982f73e50a78125.tar.gz dbscripts-66d12ed4b83d623cfbda06242982f73e50a78125.tar.xz |
Fix adjust-permissions for gerolde and sigurd
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | cron-jobs/adjust-permissions | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/cron-jobs/adjust-permissions b/cron-jobs/adjust-permissions index 947c021..6670a6f 100755 --- a/cron-jobs/adjust-permissions +++ b/cron-jobs/adjust-permissions @@ -10,19 +10,28 @@ fi /usr/bin/renice +10 -p $$ > /dev/null cd /srv/ftp -/bin/chown -R ftp:ftp-arch core/os/any -/bin/chown -R ftp:ftp-arch core/os/i686 -/bin/chown -R ftp:ftp-arch core/os/x86_64 -/bin/chown -R ftp:ftp-extra {extra,testing}/os/any -/bin/chown -R ftp:ftp-extra {extra,testing}/os/i686 -/bin/chown -R ftp:ftp-extra {extra,testing}/os/x86_64 -/bin/chown -R ftp:aur community +if [ -d "core" ]; then + #This is unique to gerolde (main arch server) + /bin/chown -R ftp:ftp-arch core/os/any + /bin/chown -R ftp:ftp-arch core/os/i686 + /bin/chown -R ftp:ftp-arch core/os/x86_64 + /bin/chown -R ftp:ftp-extra {extra,testing}/os/any + /bin/chown -R ftp:ftp-extra {extra,testing}/os/i686 + /bin/chown -R ftp:ftp-extra {extra,testing}/os/x86_64 + for d in core extra testing; do + /bin/chmod -R g+w $d/os/any + /bin/chmod -R g+w $d/os/i686 + /bin/chmod -R g+w $d/os/x86_64 + done +else + /bin/chown -R root:tusers {community,community-testing}/os/any + /bin/chown -R root:tusers {community,community-testing}/os/i686 + /bin/chown -R root:tusers {community,community-testing}/os/x86_64 + /bin/chmod -R g+w {community,community-testing}/os/any + /bin/chmod -R g+w {community,community-testing}/os/i686 + /bin/chmod -R g+w {community,community-testing}/os/x86_64 +fi -for d in core extra testing community; do - /bin/chmod -R g+w $d/os/any - /bin/chmod -R g+w $d/os/i686 - /bin/chmod -R g+w $d/os/x86_64 -done /bin/chmod 555 /srv/ftp rm -f /tmp/.ftpmaint.lck |