|
@@ -3,12 +3,15 @@
|
|
# fix for linting
|
|
# fix for linting
|
|
declare config
|
|
declare config
|
|
|
|
|
|
|
|
+# install photoshow
|
|
|
|
+echo "fetching photoshow files from github"
|
|
|
|
+git clone https://github.com/thibaud-rohmer/PhotoShow.git /config/www/PhotoShow
|
|
|
|
+
|
|
|
|
+# set config
|
|
THUMBS="/Thumbs"
|
|
THUMBS="/Thumbs"
|
|
PICTURES="/Pictures"
|
|
PICTURES="/Pictures"
|
|
|
|
|
|
if [ ! -f "/config/www/PhotoShow/config.php" ]; then
|
|
if [ ! -f "/config/www/PhotoShow/config.php" ]; then
|
|
-echo "fetching photoshow files from github"
|
|
|
|
-git clone https://github.com/thibaud-rohmer/PhotoShow.git /config/www/PhotoShow
|
|
|
|
sed -i -e "s#$config->photos_dir.\+#$config->photos_dir = \"${PICTURES}\";#" /config/www/PhotoShow/config.php
|
|
sed -i -e "s#$config->photos_dir.\+#$config->photos_dir = \"${PICTURES}\";#" /config/www/PhotoShow/config.php
|
|
sed -i -e "s#$config->ps_generated.\+#$config->ps_generated = \"${THUMBS}\";#" /config/www/PhotoShow/config.php
|
|
sed -i -e "s#$config->ps_generated.\+#$config->ps_generated = \"${THUMBS}\";#" /config/www/PhotoShow/config.php
|
|
fi
|
|
fi
|
|
@@ -16,4 +19,10 @@ fi
|
|
# patch in fixed keyboard.js file
|
|
# patch in fixed keyboard.js file
|
|
cp /defaults/keyboard.js /config/www/PhotoShow/src/js/keyboard.js
|
|
cp /defaults/keyboard.js /config/www/PhotoShow/src/js/keyboard.js
|
|
sed -i -e "s@\$config->timezone.*@\$config->timezone = \"${TZ}\"@g" /config/www/PhotoShow/config.php
|
|
sed -i -e "s@\$config->timezone.*@\$config->timezone = \"${TZ}\"@g" /config/www/PhotoShow/config.php
|
|
-chown -R abc:abc /config/www/PhotoShow /Thumbs
|
|
|
|
|
|
+
|
|
|
|
+# permissions
|
|
|
|
+chown -R abc:abc \
|
|
|
|
+ /config/www/PhotoShow \
|
|
|
|
+ /Thumbs
|
|
|
|
+
|
|
|
|
+
|