12345678910111213141516171819202122 |
- #!/usr/bin/with-contenv bash
- # fix for linting
- declare config
- # install photoshow
- 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\";#g" \
- -e "s#$config->ps_generated.*#$config->ps_generated = \"/Thumbs\";#g" \
- -e "s#.*config->timezone.*#\$config->timezone = \"${TZ}\";#g" \
- /config/www/PhotoShow/config.php
- # patch in fixed keyboard.js file
- cp /defaults/keyboard.js /config/www/PhotoShow/src/js/keyboard.js
- # permissions
- chown -R abc:abc \
- /config/www/PhotoShow \
- /Thumbs
|