Initial working commit
Stripped sensitiv information
This commit is contained in:
24
piwisync.sh
Executable file
24
piwisync.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
Reference in New Issue
Block a user