blob: 086c93234b0cb4929879bb92e9609b2b4d4a5157 [file] [log] [blame]
#!/bin/bash
[ ! -e /data/htconfig.php ] && touch /data/htconfig.php
ln -sf /data/htconfig.php /hubzilla/.htconfig.php
chmod -R 0777 /data/htconfig.php
if [ ! -e /data/store ]; then
mkdir /data/store
ln -sf /data/store /hubzilla/store
mkdir -p '/data/store/[data]/smarty3'
chmod -R 0777 /data/store
else
sed -i "s/###HUBZILLAINTERVAL###/${HUBZILLAINTERVAL}/" /hubzilla-cron.txt
crontab /hubzilla-cron.txt
fi
sed -i "s/###SERVERNAME###/${SERVERNAME}/" /etc/nginx/conf.d/default.conf
nginx
php-fpm
tail -F /var/log/*.log /var/log/nginx/*.log