summaryrefslogtreecommitdiffstats
path: root/cron-jobs/adjust-permissions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-05-21 20:50:52 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2008-05-21 20:50:52 +0200
commit8685aaea284147536394969805c9b29c7da71188 (patch)
treeddd34d9beba78db2e525be59e24e1090b01d9d7a /cron-jobs/adjust-permissions
parentb0792658d9d6fd11c63a737037bd95ef5ccc50f2 (diff)
downloaddbscripts-8685aaea284147536394969805c9b29c7da71188.tar.gz
dbscripts-8685aaea284147536394969805c9b29c7da71188.tar.xz
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-permissions24
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