paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a73180d5677cff1108012c36a9dba1f8a101d4c5
parent 6b604fee72901f9969f16fe26d9c2e838252f69d
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri,  6 Dec 2019 03:29:12 -0500

Update uploadwatch script

Diffstat:
Muploadwatch.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uploadwatch.sh b/uploadwatch.sh @@ -6,4 +6,4 @@ WATCHDIR=/home/manager/uploads/ mkdir -p "$WATCHDIR" touch /home/manager/upload.log -find "$WATCHDIR" -mindepth 1 -maxdepth 1 -exec sh -c 'if [ ! "$1" = "" ]; then chown -R www-data:www-data "$1" && echo "==========" >> /home/manager/upload.log && rsync -vr "$1" "$2" >> /home/manager/upload.log && rm -r $1; fi' - {} "$DESTDIR" \; +find "$WATCHDIR" -mindepth 1 -maxdepth 1 -exec sh -c 'if [ ! "$1" = "" ]; then echo "==========" >> /home/manager/upload.log && rsync -vr "$1" "$2" >> /home/manager/upload.log && rm -r $1 && chown -R www-data:www-data "$2"; fi' - {} "$DESTDIR" \;