Commit 02e0a25d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm sf: fix index update

parent ae86812e
...@@ -48,6 +48,7 @@ rsync_alt_contents_index() ...@@ -48,6 +48,7 @@ rsync_alt_contents_index()
{ {
local URL="$1" local URL="$1"
local TD="$2" local TD="$2"
local res
assure_exists rsync assure_exists rsync
mkdir -p "$(dirname "$TD")" mkdir -p "$(dirname "$TD")"
if [ -n "$verbose" ] ; then if [ -n "$verbose" ] ; then
...@@ -55,6 +56,9 @@ rsync_alt_contents_index() ...@@ -55,6 +56,9 @@ rsync_alt_contents_index()
else else
a= rsync --partial --inplace $3 -a --progress "$URL" "$TD" >/dev/null 2>/dev/null a= rsync --partial --inplace $3 -a --progress "$URL" "$TD" >/dev/null 2>/dev/null
fi fi
res=$?
sudocmd chmod a+rw "$TD"
return $res
} }
# URL # URL
...@@ -91,6 +95,7 @@ check_alt_contents_index() ...@@ -91,6 +95,7 @@ check_alt_contents_index()
[ -f "$ALT_CONTENTS_INDEX_LIST" ] [ -f "$ALT_CONTENTS_INDEX_LIST" ]
} }
# TODO: use special user for this files?
init_alt_contents_index() init_alt_contents_index()
{ {
sudocmd mkdir -p "$(dirname $ALT_CONTENTS_INDEX_LIST)" sudocmd mkdir -p "$(dirname $ALT_CONTENTS_INDEX_LIST)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment