25 lines
458 B
Bash
Executable File
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
|