aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-18 14:03:49 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-18 14:03:49 +0200
commit68b4d63dec9c4781fe76e317d051b2cd46ed8e60 (patch)
tree63195e9026e784e2979a02fa79b6179370992ec9 /jsaccess
parentjsaccess: ./ can be store (diff)
downloadlaurent-tools-68b4d63dec9c4781fe76e317d051b2cd46ed8e60.tar.xz
laurent-tools-68b4d63dec9c4781fe76e317d051b2cd46ed8e60.zip
jsaccess: jstore tweak permissions
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