replace lighttd with nginx

This commit is contained in:
0x5f3
2022-08-05 13:21:53 +00:00
parent 8650c68801
commit 9ac289a969
3 changed files with 23 additions and 11 deletions

View File

@@ -7,9 +7,11 @@ if [ -n "${TZ}" ]; then
sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/config/pialert.conf
crontab < /home/pi/pialert/install/pialert.cron
fi
if [ -n "${PORT}" ]; then
sed -ie 's/= 20211/= '${PORT}'/g' /etc/lighttpd/lighttpd.conf
sed -ie 's/listen 20211/listen '${PORT}'/g' /etc/nginx/sites-available/default
fi
/etc/init.d/lighttpd start
/etc/init.d/php7.4-fpm start
/etc/init.d/nginx start
cron -f