hijnu commited on
Commit
482cbdb
·
verified ·
1 Parent(s): 0800038

Update docker-entrypoint.sh

Browse files
Files changed (1) hide show
  1. docker-entrypoint.sh +3 -2
docker-entrypoint.sh CHANGED
@@ -6,12 +6,13 @@ if [ ! -d "$app_data_dir" ]; then
6
  mkdir -p "$app_data_dir"
7
  fi
8
 
 
9
  chown -R node:node /home/node
10
 
11
  if [ "$#" -gt 0 ]; then
12
  # Got started with arguments
13
- exec su-exec node "$@"
14
  else
15
  # Got started without arguments
16
- exec su-exec node n8n
17
  fi
 
6
  mkdir -p "$app_data_dir"
7
  fi
8
 
9
+ # 如果使用非 root 用户
10
  chown -R node:node /home/node
11
 
12
  if [ "$#" -gt 0 ]; then
13
  # Got started with arguments
14
+ exec "$@"
15
  else
16
  # Got started without arguments
17
+ exec n8n
18
  fi