mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修复entrypoint启动失败
This commit is contained in:
parent
9a43e022e9
commit
21b6edd7eb
|
@ -4,7 +4,6 @@ dir_shell=/ql/shell
|
||||||
. $dir_shell/share.sh
|
. $dir_shell/share.sh
|
||||||
link_shell
|
link_shell
|
||||||
|
|
||||||
set -e
|
|
||||||
echo -e "======================1. 检测配置文件========================\n"
|
echo -e "======================1. 检测配置文件========================\n"
|
||||||
make_dir /etc/nginx/conf.d
|
make_dir /etc/nginx/conf.d
|
||||||
cp -fv $nginx_conf /etc/nginx/nginx.conf
|
cp -fv $nginx_conf /etc/nginx/nginx.conf
|
||||||
|
@ -21,19 +20,13 @@ nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf
|
||||||
echo -e "nginx启动成功...\n"
|
echo -e "nginx启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================4. 启动控制面板========================\n"
|
echo -e "======================4. 启动控制面板========================\n"
|
||||||
if test -z "$(pm2 info panel 1>/dev/null)"; then
|
pm2 delete panel &>/dev/null
|
||||||
pm2 reload panel --source-map-support --time
|
|
||||||
else
|
|
||||||
pm2 start $dir_root/build/app.js -n panel --source-map-support --time
|
pm2 start $dir_root/build/app.js -n panel --source-map-support --time
|
||||||
fi
|
|
||||||
echo -e "控制面板启动成功...\n"
|
echo -e "控制面板启动成功...\n"
|
||||||
|
|
||||||
echo -e "======================5. 启动定时任务========================\n"
|
echo -e "======================5. 启动定时任务========================\n"
|
||||||
if test -z "$(pm2 info schedule 1>/dev/null)"; then
|
pm2 delete schedule &>/dev/null
|
||||||
pm2 reload schedule --source-map-support --time
|
|
||||||
else
|
|
||||||
pm2 start $dir_root/build/schedule.js -n schedule --source-map-support --time
|
pm2 start $dir_root/build/schedule.js -n schedule --source-map-support --time
|
||||||
fi
|
|
||||||
echo -e "定时任务启动成功...\n"
|
echo -e "定时任务启动成功...\n"
|
||||||
|
|
||||||
if [[ $AutoStartBot == true ]]; then
|
if [[ $AutoStartBot == true ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user