rsync docm updates

This commit is contained in:
Philip Sargent
2021-12-20 23:42:57 +00:00
parent f826f7a946
commit 369e8426a2
4 changed files with 44 additions and 9 deletions

14
scripts/updatephotos Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
#script to regenerate expo photo collection
# The active version of this script lives at /expofiles/updatephotos
BASEDIR=/home/expo
WEBDIR=/home/expo
#tidy up dangling symlinks first
find ${WEBDIR}/webphotos -type l -print0 | xargs -0 --no-run-if-empty rm
#config file location set in /etc/bins/binsrc, not here.
bins -o scaled -e ${BASEDIR}/expofiles/photos ${WEBDIR}/webphotos > ${BASEDIR}/updatephoto.log 2>&1
# <html><body>Line inserted to stop link-scanners complaining</body></html>