Files
piwigo_scan/piwisync.sh
Martin Winkler 3775d4ddd2 Initial working commit
Stripped sensitiv information
2019-05-22 13:39:54 +02:00

25 lines
458 B
Bash
Executable File

#!/bin/bash
myyear=$(date "+%Y")
if [ "$1" != "" ]
then
myyear=$1
#echo Error subdir parameter missing
#exit 1;
fi
subDir="$myyear/"
piwigoThumbRoot="/var/www/piwigo/_data/i/network/network/${subDir}"
networkPhotoRoot="/home/network/Qbilder/photos/${subDir}"
if [ ! -e ${networkPhotoRoot} ]
then
echo "${networkPhotoRoot} not found"
exit 1;
fi
/root/script/piwigo_thumbgen.sh "${networkPhotoRoot}" "${piwigoThumbRoot}"
/root/script/piwirefresh.sh