Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | [ ! -e /data/htconfig.php ] && touch /data/htconfig.php |
| 4 | ln -sf /data/htconfig.php /hubzilla/.htconfig.php |
| 5 | chmod -R 0777 /data/htconfig.php |
| 6 | |
| 7 | if [ ! -e /data/store ]; then |
| 8 | mkdir /data/store |
| 9 | ln -sf /data/store /hubzilla/store |
| 10 | mkdir -p '/data/store/[data]/smarty3' |
| 11 | chmod -R 0777 /data/store |
| 12 | else |
| 13 | sed -i "s/###HUBZILLAINTERVAL###/${HUBZILLAINTERVAL}/" /hubzilla-cron.txt |
| 14 | crontab /hubzilla-cron.txt |
| 15 | fi |
| 16 | |
| 17 | |
| 18 | |
| 19 | sed -i "s/###SERVERNAME###/${SERVERNAME}/" /etc/nginx/conf.d/default.conf |
| 20 | |
| 21 | nginx |
| 22 | php-fpm |
| 23 | |
| 24 | tail -F /var/log/*.log /var/log/nginx/*.log |