BugFix : Using haproxy-wi.cfg

pull/74/head
akihiro_k2k 2018-11-06 15:50:36 +09:00
parent 9996c52618
commit d443d81573
1 changed files with 2 additions and 2 deletions

View File

@ -365,11 +365,11 @@ if [[ $DB == 2 ]];then
echo ""
echo ""
echo "################################"
sed -i '0,/enable = 0/s//enable = 1/' /var/www/$HOME_HAPROXY_WI/app/haproxy-webintarface.config
sed -i '0,/enable = 0/s//enable = 1/' /var/www/$HOME_HAPROXY_WI/app/haproxy-wi.cfg
fi
if [[ -n $IP ]];then
sed -i "0,/mysql_host = 127.0.0.1/s//mysql_host = $IP/" /var/www/$HOME_HAPROXY_WI/app/haproxy-webintarface.config
sed -i "0,/mysql_host = 127.0.0.1/s//mysql_host = $IP/" /var/www/$HOME_HAPROXY_WI/app/haproxy-wi.cfg
fi
echo "################################"
echo ""