Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +3 -2
entrypoint.sh
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
|
| 3 |
set -e
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
exec "$@"
|
|
|
|
| 2 |
|
| 3 |
set -e
|
| 4 |
|
| 5 |
+
# 使用 || true 忽略可能的错误
|
| 6 |
+
ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime > /dev/null 2>&1 || true
|
| 7 |
+
echo "${TZ}" > /etc/timezone 2>/dev/null || true
|
| 8 |
|
| 9 |
exec "$@"
|