aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess
diff options
context:
space:
mode:
Diffstat (limited to 'jsaccess')
-rwxr-xr-xjsaccess/jstore.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsaccess/jstore.sh b/jsaccess/jstore.sh
index bd88109..59a3513 100755
--- a/jsaccess/jstore.sh
+++ b/jsaccess/jstore.sh
@@ -52,7 +52,6 @@ clean_exit() {
ret=9
[ X"$1" != X"" ] && ret=$1
rm -f $tmp
- umask $sumask
exit $ret
}
@@ -233,7 +232,7 @@ action_rget() {
action_push() {
_rget
- cmd="rsync -avzP $store/* $rsync_uri"
+ cmd="rsync -rvzP $store/* $rsync_uri"
echo "Running \"$cmd\""
$cmd
}
@@ -249,6 +248,7 @@ fi
sumask=$(umask)
umask 077
tmp=`mktemp ./jsaXXXXXXXX` # Used for storing index / new files
+umask $sumask
trap clean_exit INT TERM
# Run action