adding TZ variable to docker images open

This commit is contained in:
rafael 2023-08-17 12:37:14 +02:00
parent 6e5f4ef20a
commit b2b057d819
3 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,7 @@ services:
PUBLICURL: "" PUBLICURL: ""
SLEEP: 5 SLEEP: 5
RETRIES: 10 RETRIES: 10
TZ: 'Europe/Madrid'
networks: networks:
- pandora - pandora
ports: ports:

View File

@ -10,6 +10,8 @@ ENV DBPORT=3306
ENV SLEEP=5 ENV SLEEP=5
ENV RETRIES=1 ENV RETRIES=1
ENV OPEN=1 ENV OPEN=1
ENV TZ='Europe/Madrid'
ENV LC_ALL=C ENV LC_ALL=C

View File

@ -230,6 +230,10 @@ fi
echo "" > /opt/pandora/crontasks || touch /opt/pandora/crontasks echo "" > /opt/pandora/crontasks || touch /opt/pandora/crontasks
#set localtime
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/$TZ /etc/localtime
#install pandora packages #install pandora packages
echo "-> Istalling pandorafms" echo "-> Istalling pandorafms"
cd /opt/pandora cd /opt/pandora