Spaces:
Runtime error
Runtime error
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
if [ ! -f /
|
| 5 |
-
|
| 6 |
-
openlist admin
|
|
|
|
| 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
|