blob: 1a88819eb56463f289f8902bc361cced9e0e51e0 [file] [log] [blame]
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +02001#!/bin/bash
2
3[ ! -e /data/htconfig.php ] && touch /data/htconfig.php
4ln -sf /data/htconfig.php /hubzilla/.htconfig.php
5chmod -R 0777 /data/htconfig.php
6
Matthias Andreas Benkardaf07b8f2018-07-16 06:57:40 +02007crond
8
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +02009if [ ! -e /data/store ]; then
10 mkdir /data/store
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020011 mkdir -p '/data/store/[data]/smarty3'
12 chmod -R 0777 /data/store
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020013fi
14
Matthias Andreas Benkardaf07b8f2018-07-16 06:57:40 +020015ln -sf /data/store /hubzilla/store
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020016
Matthias Andreas Benkardaf07b8f2018-07-16 06:57:40 +020017sed -i "s/###HUBZILLAINTERVAL###/${HUBZILLAINTERVAL}/" /hubzilla-cron.txt
18crontab /hubzilla-cron.txt
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020019
20sed -i "s/###SERVERNAME###/${SERVERNAME}/" /etc/nginx/conf.d/default.conf
21
Matthias Andreas Benkardaf07b8f2018-07-16 06:57:40 +020022if [ -n "${FRONTEND_IP}" ]; then
23 echo "${FRONTEND_IP} ${SERVERNAME}" >>/etc/hosts
24fi
25
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020026nginx
Matthias Andreas Benkardaf07b8f2018-07-16 06:57:40 +020027php-fpm5
Matthias Andreas Benkardc7d492a2017-07-29 10:02:55 +020028
29tail -F /var/log/*.log /var/log/nginx/*.log