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