From 86fa9987008d52e0447a5091fbe0e07888e5d3c2 Mon Sep 17 00:00:00 2001 From: iwumingz Date: Fri, 8 Apr 2022 15:02:39 +0800 Subject: [PATCH] Modify the way to get timezone --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index bfaa750..dd99f61 100644 --- a/install.sh +++ b/install.sh @@ -129,7 +129,7 @@ install_sycgram(){ echo -e "${yellow}正在启动容器...${plain}" docker run $1 \ --name ${CONTAINER_NAME} \ - --env TZ=$(timedatectl | grep "Time zone" | awk '{print $3}') \ + --env TZ=$(cat /etc/timezone) \ --restart always \ --hostname ${CONTAINER_NAME} \ -v ${PROJECT_PATH}/data:/sycgram/data \