diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-09-11 18:33:21 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-09-11 18:33:21 +0200 |
commit | e24a59e12360c4c807dde8c24f26035b4cd24287 (patch) | |
tree | d275a158e438f13fbc6a7cd1e847e5407913a841 | |
parent | 7db155d48cd5e6120edd0de1264133ddcc5f249f (diff) | |
download | dbscripts-e24a59e12360c4c807dde8c24f26035b4cd24287.tar.gz dbscripts-e24a59e12360c4c807dde8c24f26035b4cd24287.tar.xz |
Remove obsolete cron job
-rwxr-xr-x | cron-jobs/adjust-permissions | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/cron-jobs/adjust-permissions b/cron-jobs/adjust-permissions deleted file mode 100755 index 6510d79..0000000 --- a/cron-jobs/adjust-permissions +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -script_lock - -. "$(dirname $0)/../db-functions" -. "$(dirname $0)/../config" - -get_dir_owner() { - case $1 in - # on main server, e.g. gerolde - core) - echo "ftp:ftp-arch" ;; - extra|testing|staging|kde-unstable|gnome-unstable|pool/packages) - echo "ftp:ftp-extra" ;; - - # on community server, e.g. sigurd - community|community-testing|community-staging|pool/community) - echo "root:tusers" ;; - multilib) - echo "root:multilib" ;; - esac -} - -#adjust the nice level to run at a lower priority -/usr/bin/renice +10 -p $$ > /dev/null - -pushd $FTP_BASE >/dev/null -for d in $(get_repos_for_host); do - owner="$(get_dir_owner $d)" - /bin/chown -R $owner $d/os/{any,i686,x86_64} - /bin/chmod -R g+w $d/os/{any,i686,x86_64} -done -for p in $(get_pkgpool_for_host); do - owner="$(get_dir_owner $p)" - /bin/chown $owner $p - /bin/chmod g+w $p -done -/bin/chmod 555 $FTP_BASE -popd >/dev/null - -script_unlock |