|
@@ -51,11 +51,11 @@ if [[ ! -d "$base_dir/log" ]]; then
|
|
|
fi
|
|
|
|
|
|
# preparation check
|
|
|
-if [[ ! -f "$base_dir/ui-launcher.sh" ]]; then
|
|
|
+if [[ ! -f "$base_dir/bin/nginx-ui" ]]; then
|
|
|
log_err "文件夹中缺少nginx-ui-green(主程序),无法运行" && exit 1
|
|
|
fi
|
|
|
|
|
|
-if [[ ! -x "$base_dir/ui-launcher.sh" ]]; then
|
|
|
+if [[ ! -x "$base_dir/bin/nginx-ui" ]]; then
|
|
|
log_err "nginx-ui-green无可执行权限,无法运行。请使用chmod" && exit 1
|
|
|
fi
|
|
|
|
|
@@ -67,6 +67,6 @@ else
|
|
|
mkdir "$log_path"
|
|
|
fi
|
|
|
log_file="nginx-ui-green_$(date "+%Y-%m-%d-%H:%M:%S").log"
|
|
|
- ./ui-launcher.sh server --config-file=$base_dir/config/config.xml &> "${log_path}${log_file}" &
|
|
|
+ ./bin/nginx-ui -config $base_dir/config/app.ini &> "${log_path}${log_file}" &
|
|
|
./status.sh
|
|
|
fi
|