diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-09-02 14:50:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-09-02 14:50:04 +0200 |
commit | 3b903c5c46287cc6f453b3138842715a467c57fb (patch) | |
tree | 7bab364cf5908a77960f4c2370bf65f0c7278ff2 /db-move | |
parent | df78f6e877325ddfd9569e9704612ee2509791b1 (diff) | |
download | dbscripts-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-move')
-rwxr-xr-x | db-move | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -108,8 +108,11 @@ for tarch in ${ARCHES[@]}; do if [ -n "${add_pkgs[${tarch}]}" ]; then /usr/bin/repo-add -q "${ftppath_to}/${tarch}/${repo_to}${DBEXT}" ${add_pkgs[${tarch}]} >/dev/null \ || error "repo-add ${tarch}/${repo_to}${DBEXT} ${add_pkgs[${tarch}]}" + set_repo_permission "${repo_to}" "${tarch}" + /usr/bin/repo-remove -q "${ftppath_from}/${tarch}/${repo_from}${DBEXT}" ${remove_pkgs[${tarch}]} >/dev/null \ || error "repo-remove ${tarch}/${repo_from}${DBEXT} ${remove_pkgs[${tarch}]}" + set_repo_permission "${repo_from}" "${tarch}" fi done |