hijnu commited on
Commit
77bb816
·
verified ·
1 Parent(s): b2250e0

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +8 -2
entrypoint.sh CHANGED
@@ -7,12 +7,18 @@ if [ ! -d "$app_data_dir" ]; then
7
  mkdir -p "$app_data_dir"
8
  fi
9
 
 
 
 
 
 
 
10
  # 设置目录权限
11
  chown -R node:node /home/node
12
 
13
  # 启动应用,根据传递的参数决定启动方式
14
- if [ "$#" -gt 0 ]; then
15
  exec "$@"
16
  else
17
  exec n8n
18
- fi
 
7
  mkdir -p "$app_data_dir"
8
  fi
9
 
10
+ # 挂载远程存储到数据目录
11
+ # rclone mount remote_name:/path/to/remote/folder $app_data_dir \
12
+ # --daemon \
13
+ # --allow-other \
14
+ # --vfs-cache-mode writes
15
+
16
  # 设置目录权限
17
  chown -R node:node /home/node
18
 
19
  # 启动应用,根据传递的参数决定启动方式
20
+ if [ "$#" -gt 0 ];then
21
  exec "$@"
22
  else
23
  exec n8n
24
+ fi