focusprogram commited on
Commit
b86a911
·
verified ·
1 Parent(s): f77062e

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -2
entrypoint.sh CHANGED
@@ -2,7 +2,8 @@
2
 
3
  set -e
4
 
5
- ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime > /dev/null
6
- echo "${TZ}" > /etc/timezone
 
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 "$@"