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 | |
Matthias Andreas Benkard | af07b8f | 2018-07-16 06:57:40 +0200 | [diff] [blame] | 7 | crond |
| 8 | |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 9 | if [ ! -e /data/store ]; then |
| 10 | mkdir /data/store |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 11 | mkdir -p '/data/store/[data]/smarty3' |
| 12 | chmod -R 0777 /data/store |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 13 | fi |
| 14 | |
Matthias Andreas Benkard | af07b8f | 2018-07-16 06:57:40 +0200 | [diff] [blame] | 15 | ln -sf /data/store /hubzilla/store |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 16 | |
Matthias Andreas Benkard | af07b8f | 2018-07-16 06:57:40 +0200 | [diff] [blame] | 17 | sed -i "s/###HUBZILLAINTERVAL###/${HUBZILLAINTERVAL}/" /hubzilla-cron.txt |
| 18 | crontab /hubzilla-cron.txt |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 19 | |
| 20 | sed -i "s/###SERVERNAME###/${SERVERNAME}/" /etc/nginx/conf.d/default.conf |
| 21 | |
Matthias Andreas Benkard | af07b8f | 2018-07-16 06:57:40 +0200 | [diff] [blame] | 22 | if [ -n "${FRONTEND_IP}" ]; then |
| 23 | echo "${FRONTEND_IP} ${SERVERNAME}" >>/etc/hosts |
| 24 | fi |
| 25 | |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 26 | nginx |
Matthias Andreas Benkard | af07b8f | 2018-07-16 06:57:40 +0200 | [diff] [blame] | 27 | php-fpm5 |
Matthias Andreas Benkard | c7d492a | 2017-07-29 10:02:55 +0200 | [diff] [blame] | 28 | |
| 29 | tail -F /var/log/*.log /var/log/nginx/*.log |