diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-21 14:50:52 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-21 14:50:52 -0400 |
commit | 8685aaea284147536394969805c9b29c7da71188 (patch) | |
tree | ddd34d9beba78db2e525be59e24e1090b01d9d7a /cron-jobs/adjust-permissions | |
parent | b0792658d9d6fd11c63a737037bd95ef5ccc50f2 (diff) |
Copied 'ftpmaint' from root as adjust-permissions
This script makes sure we all have write access to
the repos
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/adjust-permissions')
-rw-r--r-- | cron-jobs/adjust-permissions | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cron-jobs/adjust-permissions b/cron-jobs/adjust-permissions new file mode 100644 index 0000000..7f7e4c8 --- /dev/null +++ b/cron-jobs/adjust-permissions @@ -0,0 +1,24 @@ +#!/bin/sh + +if [ -f /tmp/.ftpmaint.lck ]; then + exit 0 +fi + +/bin/touch /tmp/.ftpmaint.lck + +cd /home/ftp +/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,unstable,testing}/os/i686 +/bin/chown -R ftp:ftp-extra {extra,unstable,testing}/os/x86_64 +/bin/chown -R ftp:aur community + +/bin/chmod -R g+w /home/aur/unsupported{,-temp} + +for d in core extra unstable testing community; do + /bin/chmod -R g+w $d/os/i686 + /bin/chmod -R g+w $d/os/x86_64 +done +/bin/chmod 555 /home/ftp + +rm -f /tmp/.ftpmaint.lck |