From b2b057d819abb40de5dd3aee88461e034dcc4b1b Mon Sep 17 00:00:00 2001 From: rafael Date: Thu, 17 Aug 2023 12:37:14 +0200 Subject: [PATCH] adding TZ variable to docker images open --- extras/docker/centos8/docker-compose.yml | 1 + extras/docker/centos8/pandora-stack/Dockerfile | 2 ++ extras/docker/centos8/pandora-stack/sources/init_pandora.sh | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/extras/docker/centos8/docker-compose.yml b/extras/docker/centos8/docker-compose.yml index 5ac5385133..37df7251f5 100644 --- a/extras/docker/centos8/docker-compose.yml +++ b/extras/docker/centos8/docker-compose.yml @@ -32,6 +32,7 @@ services: PUBLICURL: "" SLEEP: 5 RETRIES: 10 + TZ: 'Europe/Madrid' networks: - pandora ports: diff --git a/extras/docker/centos8/pandora-stack/Dockerfile b/extras/docker/centos8/pandora-stack/Dockerfile index 59728b37d6..65442a2588 100644 --- a/extras/docker/centos8/pandora-stack/Dockerfile +++ b/extras/docker/centos8/pandora-stack/Dockerfile @@ -10,6 +10,8 @@ ENV DBPORT=3306 ENV SLEEP=5 ENV RETRIES=1 ENV OPEN=1 +ENV TZ='Europe/Madrid' + ENV LC_ALL=C diff --git a/extras/docker/centos8/pandora-stack/sources/init_pandora.sh b/extras/docker/centos8/pandora-stack/sources/init_pandora.sh index e9265a0981..c27b5b35e0 100755 --- a/extras/docker/centos8/pandora-stack/sources/init_pandora.sh +++ b/extras/docker/centos8/pandora-stack/sources/init_pandora.sh @@ -230,6 +230,10 @@ fi 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 echo "-> Istalling pandorafms" cd /opt/pandora