1
0
bot/test/cron.zsh

8 lines
107 B
Bash
Raw Normal View History

2023-10-20 14:31:16 +00:00
function cron() {
2024-04-02 08:07:18 +00:00
t=`docker ps |grep aios|grep R`
2023-10-20 14:31:16 +00:00
if [ -z "$t" ];then
2024-04-02 08:07:18 +00:00
exit
2023-10-20 14:31:16 +00:00
fi
2024-04-02 08:07:18 +00:00
docker compose up -d
2023-10-20 14:31:16 +00:00
}