summaryrefslogtreecommitdiff
path: root/parabolaweb-reporead-rsync.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-05 02:16:52 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-05 02:16:52 -0500
commit16fc308609fbad62b06543a057dde35a8d541955 (patch)
treed0043b9cb73d2e31dd0e7050d5deeb4b480ed9da /parabolaweb-reporead-rsync.in
parent366e740c8d1b16812638be0f45509d6c64c634a8 (diff)
fix
Diffstat (limited to 'parabolaweb-reporead-rsync.in')
-rw-r--r--parabolaweb-reporead-rsync.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/parabolaweb-reporead-rsync.in b/parabolaweb-reporead-rsync.in
index 3fd6234..f18a412 100644
--- a/parabolaweb-reporead-rsync.in
+++ b/parabolaweb-reporead-rsync.in
@@ -21,13 +21,14 @@
[[ $# -eq 0 ]]
sudo -u "${WEBUSER:-$USER}" rsync -v --no-motd -mrtlH --no-p \
- --include='*/' --include='*'.files,.tar.gz --exclude='*' \
+ --include='*/' --include='*'.files.tar.gz --exclude='*' \
--delete-after "$RSYNCSRV" "$RSYNCDIR/"
r=0
sudo -u "${WEBUSER:-$USER}" find "$RSYNCDIR" -name '*.files.tar.gz' -not -name '.*' |
sed -r 's|.*/([^/]+)/[^/]+$|\1 &|' |
while read -r arch filename; do
+ echo reporead "$arch" "$filename"
sudo -u "${WEBUSER:-$USER}" python2 "${WEBDIR}/manage.py" reporead "$arch" "$filename" || r=$?
done
exit $r