summaryrefslogtreecommitdiffstats
path: root/db-remove
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-23 00:48:58 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-23 00:48:58 +0100
commit5ed9e55f4d6a26452baaffadba407459ff96f295 (patch)
tree99d7abae67141d6f45187a92f80315db07b3fba2 /db-remove
parenta7a268356fac69c94d99315553f4d61fa2744261 (diff)
downloaddbscripts-5ed9e55f4d6a26452baaffadba407459ff96f295.tar.gz
dbscripts-5ed9e55f4d6a26452baaffadba407459ff96f295.tar.xz
Remove 'copy_helper' as chmodding is fail
The chmod doesn't work unless the user is the owner of the file Resorting to umask changes here 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 2e0307d..c5b6819 100755
--- a/db-remove
+++ b/db-remove
@@ -66,7 +66,7 @@ cd "$WORKDIR"
# copy the db file into our working area
if [ -f "$ftppath/$reponame.db.tar.$DB_COMPRESSION" ]; then
- copy_helper "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
+ /bin/cp "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
else
echo "No database found at '$ftpdir', nothing more to do"
exit 0
@@ -76,7 +76,7 @@ echo " Removing from $reponame DB file"
cd build/
/usr/bin/repo-remove "$reponame.db.tar.$DB_COMPRESSION" $packagename
-copy_helper "$reponame.db.tar.$DB_COMPRESSION" "$ftppath/"
+/bin/cp "$reponame.db.tar.$DB_COMPRESSION" "$ftppath/"
echo "Package files will be cleaned up automatically"