mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
tz work on #599
This commit is contained in:
@@ -37,8 +37,12 @@ cp -na "${INSTALL_DIR}/pialert/back/pialert.db" "${FILEDB}"
|
||||
# if custom variables not set we do not need to do anything
|
||||
if [ -n "${TZ}" ]; then
|
||||
FILECONF="${INSTALL_DIR}/pialert/config/pialert.conf"
|
||||
echo "[INSTALL] Setup timezone"
|
||||
echo "[INSTALL] Setup timezone"
|
||||
sed -i "\#^TIMEZONE=#c\TIMEZONE='${TZ}'" "${FILECONF}"
|
||||
|
||||
# set TimeZone in container
|
||||
cp /usr/share/zoneinfo/$TZ /etc/localtime
|
||||
echo $TZ > /etc/timezone
|
||||
fi
|
||||
|
||||
echo "[INSTALL] Setup NGINX"
|
||||
|
||||
Reference in New Issue
Block a user