修复修改配置时value传不入php问题
This commit is contained in:
@@ -79,7 +79,7 @@ function amh_module_admin()
|
|||||||
;;
|
;;
|
||||||
add)
|
add)
|
||||||
proxy_pass=$3;
|
proxy_pass=$3;
|
||||||
RES=`php ${module_dir}cli.php --action='add' --server_name=${domain} --proxy_pass=${proxy_pass}`;
|
RES=`php ${module_dir}cli.php --action='add' --server_name=${domain} --proxy_pass="${proxy_pass}"`;
|
||||||
echo $RES;
|
echo $RES;
|
||||||
if ! echo "$RES" | grep 'Error' > /dev/null; then
|
if ! echo "$RES" | grep 'Error' > /dev/null; then
|
||||||
amh nginx reload;
|
amh nginx reload;
|
||||||
@@ -94,7 +94,7 @@ function amh_module_admin()
|
|||||||
i=$[$i+1];
|
i=$[$i+1];
|
||||||
[ "$i" -gt 3 ] && ParamVal="$ParamVal $line";
|
[ "$i" -gt 3 ] && ParamVal="$ParamVal $line";
|
||||||
done;
|
done;
|
||||||
RES=`php ${module_dir}cli.php --action='edit' --server_name=${domain} --field_name=${ParamName} --value=${ParamVal}`;
|
RES=`php ${module_dir}cli.php --action='edit' --server_name=${domain} --field_name=${ParamName} --value="${ParamVal}"`;
|
||||||
echo $RES;
|
echo $RES;
|
||||||
if ! echo "$RES" | grep 'Error' > /dev/null; then
|
if ! echo "$RES" | grep 'Error' > /dev/null; then
|
||||||
amh nginx reload;
|
amh nginx reload;
|
||||||
|
|||||||
Reference in New Issue
Block a user