Spaces:
Paused
Paused
Update background_cleanup.sh
Browse files- background_cleanup.sh +4 -0
background_cleanup.sh
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
#!/bin/bash
|
2 |
|
|
|
|
|
|
|
|
|
3 |
while true; do
|
4 |
/app/backend/cleanup.sh
|
5 |
sleep 1800 # 休眠30分钟
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# 确保日志目录存在
|
4 |
+
mkdir -p /app/backend/logs
|
5 |
+
|
6 |
+
# 后台循环脚本
|
7 |
while true; do
|
8 |
/app/backend/cleanup.sh
|
9 |
sleep 1800 # 休眠30分钟
|