summaryrefslogtreecommitdiffstats
path: root/db-update
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-update
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-update')
-rwxr-xr-xdb-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-update b/db-update
index d98b60d..c76337a 100755
--- a/db-update
+++ b/db-update
@@ -73,7 +73,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
touch "build/$reponame.db.tar.$DB_COMPRESSION"
fi
@@ -137,7 +137,7 @@ if [ -n "$ADDPKGS" ]; then
if [ -n "$to_add" ]; then
cd "$WORKDIR/build/"
- for f in $to_add; do copy_helper "$f" .; done
+ for f in $to_add; do /bin/cp "$f" .; done
pkgs=""
for pkg in $to_add; do pkgs="$pkgs $(basename $pkg)"; done
@@ -155,7 +155,7 @@ fi
if [ $(/bin/ls "$WORKDIR/build/" 2>/dev/null | wc -l) != 0 ]; then
echo "Copying new files to '$ftppath'"
for f in "$WORKDIR/build/"*; do
- if ! copy_helper "$f" "$ftppath"; then
+ if ! /bin/cp "$f" "$ftppath"; then
die "error: failure while copying files to $ftppath"
fi
done