summaryrefslogtreecommitdiffstats
path: root/db-remove
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-09-02 14:50:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-09-02 14:50:04 +0200
commit3b903c5c46287cc6f453b3138842715a467c57fb (patch)
tree7bab364cf5908a77960f4c2370bf65f0c7278ff2 /db-remove
parentdf78f6e877325ddfd9569e9704612ee2509791b1 (diff)
downloaddbscripts-3b903c5c46287cc6f453b3138842715a467c57fb.tar.gz
dbscripts-3b903c5c46287cc6f453b3138842715a467c57fb.tar.xz
Set correct group after touching the db file
* When writing the db file ensure that it has write permission of the group which owns the parent directory. * This should make the adjust-permissions cron job obsolete.
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove1
1 files changed, 1 insertions, 0 deletions
diff --git a/db-remove b/db-remove
index 8dabb18..6743eea 100755
--- a/db-remove
+++ b/db-remove
@@ -48,5 +48,6 @@ for tarch in ${tarches[@]}; do
fi
/usr/bin/repo-remove -q "$ftppath/$tarch/$repo$DBEXT" ${pkgnames[@]} >/dev/null
+ set_repo_permission "${repo}" "${tarch}"
repo_unlock $repo $tarch
done