summaryrefslogtreecommitdiff
path: root/db-remove
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-21 13:06:06 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-21 13:11:24 -0700
commit23f48e65a5f4133be8a5d2883de6ffb2f4f04962 (patch)
tree2106d4d3a956424e9068e231b55c98ffc99c558c /db-remove
parent0dd49e0e02f40a1687814f15d4aea55e1cc8411a (diff)
Add copy_helper function to ensure correct permissions
This will force all files copied back and forth to have 0664 permissions so that we can attempt to do away with this permission adjusting cron job Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-remove b/db-remove
index fdc7c5d..bb91afd 100755
--- a/db-remove
+++ b/db-remove
@@ -68,7 +68,7 @@ cd "$WORKDIR"
# copy the db file into our working area
if [ -f "$ftppath/$reponame.db.tar.$DB_COMPRESSION" ]; then
- cp "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
+ copy_helper "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
else
echo "No database found at '$ftpdir', nothing more to do"
exit 0
@@ -78,7 +78,7 @@ echo " Removing from $reponame DB file"
cd build/
/usr/bin/repo-remove "$reponame.db.tar.$DB_COMPRESSION" $packagename
-cp "$reponame.db.tar.$DB_COMPRESSION" "$ftppath/"
+copy_helper "$reponame.db.tar.$DB_COMPRESSION" "$ftppath/"
echo "Package files will be cleaned up automatically"