Files changed (1) hide show
  1. start.sh +10 -4
start.sh CHANGED
@@ -1,5 +1,11 @@
1
  #!/bin/bash
2
- # 启动 aria2
3
- aria2c --conf-path=/app/aria2.conf &
4
- # 启动 Cloudreve
5
- ./cloudreve -c /app/conf.ini
 
 
 
 
 
 
 
1
  #!/bin/bash
2
+
3
+ # 启动前先尝试恢复数据
4
+ /app/sync_data.sh restore
5
+
6
+ # 启动aria2和Cloudreve
7
+ aria2c --conf-path=/app/aria2.conf --daemon=true --enable-rpc=true --rpc-listen-all=true &
8
+ ./cloudreve -c /app/conf.ini
9
+
10
+ # 保持容器运行
11
+ tail -f /dev/null