diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-05 02:16:52 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-05 02:16:52 -0500 |
commit | 16fc308609fbad62b06543a057dde35a8d541955 (patch) | |
tree | d0043b9cb73d2e31dd0e7050d5deeb4b480ed9da | |
parent | 366e740c8d1b16812638be0f45509d6c64c634a8 (diff) |
fix
-rw-r--r-- | parabolaweb-reporead-rsync.in | 3 | ||||
-rw-r--r-- | parabolaweb-reporead-rsync.timer | 2 |
2 files changed, 3 insertions, 2 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 diff --git a/parabolaweb-reporead-rsync.timer b/parabolaweb-reporead-rsync.timer index 338a192..7aaf9a6 100644 --- a/parabolaweb-reporead-rsync.timer +++ b/parabolaweb-reporead-rsync.timer @@ -2,7 +2,7 @@ Description=ParabolaWeb reporead batch job [Timer] -OnUnitInactiveSec=10m +OnCalendar=minutely [Install] WantedBy=multi-user.target |