优化代码。

Signed-off-by: HITSword <admin@huayizhiyun.com>
This commit is contained in:
HITSword
2020-01-09 17:21:19 +08:00
parent d130bedea6
commit 0331af549d
5 changed files with 357 additions and 268 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ function amh_module_admin()
elif [ "$action" == 'del' ]; then
php ${module_dir}hyproxy-cli.php --action='del' --server_name=${domain}
rm -f "$domain_conf" && echo "[OK] successfully delete $domain HYProxy.";
echo "[OK] successfully delete $domain HYProxy.";
amh nginx reload;
elif [ "$action" == 'start' ]; then
php ${module_dir}hyproxy-cli.php --action='edit' --server_name=${domain} --field_name='status' --value='start';