Beta: Fix Timezone issues

This commit is contained in:
Joshua
2022-07-27 09:08:29 +10:00
parent 544f807971
commit 120b24620b
6 changed files with 21 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ COPY . /home/pi/pialert
# Pi.Alert
RUN python /home/pi/pialert/back/pialert.py update_vendors \
&& sed -ie 's/= 80/= '${PORT}'/g' /etc/lighttpd/lighttpd.conf \
&& sed -i.bak 's/^\(TIMEZONE=\).*/\'${TZ}'/' /home/pi/pialert/config/pialert.conf \
&& (crontab -l 2>/dev/null; cat /home/pi/pialert/install/pialert.cron) | crontab -
# it's easy for permissions set in Git to be overridden, so doing it manually