mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修改容器启动逻辑
This commit is contained in:
@@ -9,15 +9,11 @@ fix_config
|
||||
cp -fv $dir_root/docker/front.conf /etc/nginx/conf.d/front.conf
|
||||
echo
|
||||
|
||||
echo -e "======================2. 更新源代码========================\n"
|
||||
ql update "no-restart"
|
||||
echo
|
||||
|
||||
echo -e "======================3. 启动nginx========================\n"
|
||||
echo -e "======================2. 启动nginx========================\n"
|
||||
nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
||||
echo -e "nginx启动成功...\n"
|
||||
|
||||
echo -e "======================4. 启动控制面板========================\n"
|
||||
echo -e "======================3. 启动控制面板========================\n"
|
||||
cd $dir_root
|
||||
if [[ $(pm2 info panel 2>/dev/null) ]]; then
|
||||
pm2 reload panel
|
||||
@@ -26,7 +22,7 @@ else
|
||||
fi
|
||||
echo -e "控制面板启动成功...\n"
|
||||
|
||||
echo -e "======================5. 启动定时任务========================\n"
|
||||
echo -e "======================4. 启动定时任务========================\n"
|
||||
cd $dir_root
|
||||
if [[ $(pm2 info schedule 2>/dev/null) ]]; then
|
||||
pm2 reload schedule
|
||||
@@ -36,7 +32,7 @@ fi
|
||||
echo -e "定时任务启动成功...\n"
|
||||
|
||||
if [[ $AutoStartBot == true ]]; then
|
||||
echo -e "======================6. 启动bot========================\n"
|
||||
echo -e "======================5. 启动bot========================\n"
|
||||
cd $dir_root
|
||||
ql bot
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user