BugFix : Using haproxy-wi.cfg

pull/74/head
akihiro_k2k 6 years ago
parent 9996c52618
commit d443d81573

@ -365,11 +365,11 @@ if [[ $DB == 2 ]];then
echo "" echo ""
echo "" 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 fi
if [[ -n $IP ]];then 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 fi
echo "################################" echo "################################"
echo "" echo ""

Loading…
Cancel
Save