diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-05 02:30:15 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-05 02:34:26 -0500 |
commit | fc699adadba640164cf28335e1f89ce05b596ee4 (patch) | |
tree | ee3cf654465518470296fd59369f50591ca5102c /parabolaweb-reporead-rsync.in | |
parent | 2a6a7399f334f84d6c8665056d383b18222b452c (diff) |
Have webuser be a compile-time config rather than run-time.
Diffstat (limited to 'parabolaweb-reporead-rsync.in')
-rw-r--r-- | parabolaweb-reporead-rsync.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parabolaweb-reporead-rsync.in b/parabolaweb-reporead-rsync.in index f18a412..d71cb2a 100644 --- a/parabolaweb-reporead-rsync.in +++ b/parabolaweb-reporead-rsync.in @@ -20,15 +20,15 @@ [[ -e "${WEBDIR}/manage.py" ]] [[ $# -eq 0 ]] -sudo -u "${WEBUSER:-$USER}" rsync -v --no-motd -mrtlH --no-p \ +rsync -v --no-motd -mrtlH --no-p \ --include='*/' --include='*'.files.tar.gz --exclude='*' \ --delete-after "$RSYNCSRV" "$RSYNCDIR/" r=0 -sudo -u "${WEBUSER:-$USER}" find "$RSYNCDIR" -name '*.files.tar.gz' -not -name '.*' | +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=$? + python2 "${WEBDIR}/manage.py" reporead "$arch" "$filename" || r=$? done exit $r |