diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-10-21 22:06:06 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-10-21 22:11:24 +0200 |
commit | 23f48e65a5f4133be8a5d2883de6ffb2f4f04962 (patch) | |
tree | 2106d4d3a956424e9068e231b55c98ffc99c558c /db-move | |
parent | 0dd49e0e02f40a1687814f15d4aea55e1cc8411a (diff) | |
download | dbscripts-23f48e65a5f4133be8a5d2883de6ffb2f4f04962.tar.gz dbscripts-23f48e65a5f4133be8a5d2883de6ffb2f4f04962.tar.xz |
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-move')
-rwxr-xr-x | db-move | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -85,7 +85,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 - cp "$ftppath_from/$repofrom.db.tar.$DB_COMPRESSION" . + copy_helper "$ftppath_from/$repofrom.db.tar.$DB_COMPRESSION" . else touch "$repofrom.db.tar.$DB_COMPRESSION" fi @@ -96,12 +96,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 - cp "$ftppath_to/$repoto.db.tar.$DB_COMPRESSION" . + copy_helper "$ftppath_to/$repoto.db.tar.$DB_COMPRESSION" . else touch "$repoto.db.tar.$DB_COMPRESSION" fi - cp "$ftppath_from/$_pkgfile" . + copy_helper "$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 |