diff options
Diffstat (limited to 'cron-jobs')
-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 |