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:
@@ -35,7 +35,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
|
|||||||
# ❗ IMPORTANT - if you modify this file modify the /install/install_dependecies.sh file as well ❗
|
# ❗ IMPORTANT - if you modify this file modify the /install/install_dependecies.sh file as well ❗
|
||||||
|
|
||||||
RUN apk update --no-cache \
|
RUN apk update --no-cache \
|
||||||
&& apk add --no-cache bash zip lsblk gettext-envsubst sudo mtr s6-overlay \
|
&& apk add --no-cache bash zip lsblk gettext-envsubst sudo mtr tzdata s6-overlay \
|
||||||
&& apk add --no-cache curl arp-scan iproute2 iproute2-ss nmap traceroute net-tools net-snmp-tools bind-tools awake ca-certificates \
|
&& apk add --no-cache curl arp-scan iproute2 iproute2-ss nmap traceroute net-tools net-snmp-tools bind-tools awake ca-certificates \
|
||||||
&& apk add --no-cache sqlite php82 php82-fpm php82-cgi php82-curl php82-sqlite3 php82-session \
|
&& apk add --no-cache sqlite php82 php82-fpm php82-cgi php82-curl php82-sqlite3 php82-session \
|
||||||
&& apk add --no-cache python3 nginx \
|
&& apk add --no-cache python3 nginx \
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ docker run -d --rm --network=host \
|
|||||||
|
|
||||||
> Use separate `db` and `config` directories, don't nest them.
|
> Use separate `db` and `config` directories, don't nest them.
|
||||||
|
|
||||||
### Modify the config (`pialert.conf`) only if UI is not available
|
### (If UI is not available) Modify the config (`pialert.conf`)
|
||||||
|
|
||||||
- The preferred way is to manage the configuration via the Settings section in the UI.
|
- The preferred way is to manage the configuration via the Settings section in the UI.
|
||||||
- You can modify [pialert.conf](https://github.com/jokob-sk/Pi.Alert/tree/main/config) directly, if needed.
|
- You can modify [pialert.conf](https://github.com/jokob-sk/Pi.Alert/tree/main/config) directly, if needed.
|
||||||
@@ -235,14 +235,7 @@ Courtesy of [pbek](https://github.com/pbek). The volume `pialert_db` is used by
|
|||||||
|
|
||||||
Big thanks to <a href="https://github.com/Macleykun">@Macleykun</a> & for help and tips&tricks for Dockerfile(s) and <a href="https://github.com/vladaurosh">@vladaurosh</a> for Alpine re-base help.
|
Big thanks to <a href="https://github.com/Macleykun">@Macleykun</a> & for help and tips&tricks for Dockerfile(s) and <a href="https://github.com/vladaurosh">@vladaurosh</a> for Alpine re-base help.
|
||||||
|
|
||||||
## ❤ Support me
|
## ❤ Support me to prevent my burnout 🔥🤯
|
||||||
|
|
||||||
Get:
|
|
||||||
- Regular updates to keep your data and family safe 🔄
|
|
||||||
- Better and more functionality➕
|
|
||||||
- I don't get burned out and the app survives longer🔥🤯
|
|
||||||
- Quicker and better support with issues 🆘
|
|
||||||
- Less grumpy me 😄
|
|
||||||
|
|
||||||
| [](https://github.com/sponsors/jokob-sk) | [](https://www.buymeacoffee.com/jokobsk) | [](https://www.patreon.com/user?u=84385063) |
|
| [](https://github.com/sponsors/jokob-sk) | [](https://www.buymeacoffee.com/jokobsk) | [](https://www.patreon.com/user?u=84385063) |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
|||||||
@@ -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 custom variables not set we do not need to do anything
|
||||||
if [ -n "${TZ}" ]; then
|
if [ -n "${TZ}" ]; then
|
||||||
FILECONF="${INSTALL_DIR}/pialert/config/pialert.conf"
|
FILECONF="${INSTALL_DIR}/pialert/config/pialert.conf"
|
||||||
echo "[INSTALL] Setup timezone"
|
echo "[INSTALL] Setup timezone"
|
||||||
sed -i "\#^TIMEZONE=#c\TIMEZONE='${TZ}'" "${FILECONF}"
|
sed -i "\#^TIMEZONE=#c\TIMEZONE='${TZ}'" "${FILECONF}"
|
||||||
|
|
||||||
|
# set TimeZone in container
|
||||||
|
cp /usr/share/zoneinfo/$TZ /etc/localtime
|
||||||
|
echo $TZ > /etc/timezone
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[INSTALL] Setup NGINX"
|
echo "[INSTALL] Setup NGINX"
|
||||||
|
|||||||
Reference in New Issue
Block a user