laobanzhang commited on
Commit
6be2a4e
·
verified ·
1 Parent(s): b914de5

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +6 -5
start.sh CHANGED
@@ -1,10 +1,11 @@
1
  #!/bin/bash
2
 
3
- # 检查数据目录是否已初始化,如果未初始化,则进行初始化
4
- if [ ! -f /opt/openlist/data/config.json ]; then
5
- # 初始化操作
6
- openlist admin random
 
7
  fi
8
 
9
  # 启动服务器
10
- exec openlist server
 
1
  #!/bin/bash
2
 
3
+ # 检查配置文件是否存在,如果不存在则初始化
4
+ if [ ! -f /openlist/data/config.json ]; then
5
+ echo "Initializing Openlist configuration..."
6
+ ./openlist admin
7
+ ./openlist admin random
8
  fi
9
 
10
  # 启动服务器
11
+ exec ./openlist server