summaryrefslogtreecommitdiffstats
path: root/db-move
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-move
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-move')
-rwxr-xr-xdb-move6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-move b/db-move
index 74e0b0b..0e0587c 100755
--- a/db-move
+++ b/db-move
@@ -83,7 +83,7 @@ if [ -d "$packagename/repos/$svnrepo_from" ]; then
# copy the db file into our working area
if [ -f "$ftppath_from/$repofrom.db.tar.$DB_COMPRESSION" ]; then
- copy_helper "$ftppath_from/$repofrom.db.tar.$DB_COMPRESSION" .
+ /bin/cp "$ftppath_from/$repofrom.db.tar.$DB_COMPRESSION" .
else
touch "$repofrom.db.tar.$DB_COMPRESSION"
fi
@@ -94,12 +94,12 @@ if [ -d "$packagename/repos/$svnrepo_from" ]; then
echo " Package files will be cleaned up automatically"
if [ -f "$ftppath_to/$repoto.db.tar.$DB_COMPRESSION" ]; then
- copy_helper "$ftppath_to/$repoto.db.tar.$DB_COMPRESSION" .
+ /bin/cp "$ftppath_to/$repoto.db.tar.$DB_COMPRESSION" .
else
touch "$repoto.db.tar.$DB_COMPRESSION"
fi
- copy_helper "$ftppath_from/$_pkgfile" .
+ /bin/cp "$ftppath_from/$_pkgfile" .
/usr/bin/repo-add "$repoto.db.tar.$DB_COMPRESSION" $_pkgfile || die "Error in repo-add"
#use '*' to move the old DB too
mv $repoto.db.tar.$DB_COMPRESSION* $_pkgfile $ftppath_to