Update docker-entrypoint.sh
Browse files- 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
|
14 |
else
|
15 |
# Got started without arguments
|
16 |
-
exec
|
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
|