mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
16 lines
480 B
Bash
Executable File
16 lines
480 B
Bash
Executable File
#!/bin/sh
|
|
/home/pi/pialert/dockerfiles/user-mapping.sh
|
|
|
|
# if custom variables not set we do not need to do anything
|
|
if [ -n "${TZ}" ]; then
|
|
sed -ie "s|Europe/Berlin|${TZ}|g" /home/pi/pialert/install/pialert.cron
|
|
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
|
|
fi
|
|
|
|
/etc/init.d/lighttpd start
|
|
cron -f
|