Config name bug
pull/56/head
Aidaho12 6 years ago
parent 9c1cad105a
commit a9e99f44a1

@ -13,7 +13,7 @@ def get_app_dir():
def get_config_var(sec, var): def get_config_var(sec, var):
from configparser import ConfigParser, ExtendedInterpolation from configparser import ConfigParser, ExtendedInterpolation
try: try:
path_config = get_app_dir()+"/haproxy-webintarface.config" path_config = get_app_dir()+"/haproxy-wi.cfg"
config = ConfigParser(interpolation=ExtendedInterpolation()) config = ConfigParser(interpolation=ExtendedInterpolation())
config.read(path_config) config.read(path_config)
except: except:

@ -17,3 +17,4 @@ mysql_user = haproxy-wi
mysql_password = haproxy-wi mysql_password = haproxy-wi
mysql_db = haproxywi mysql_db = haproxywi
mysql_host = 127.0.0.1 mysql_host = 127.0.0.1

@ -26,10 +26,21 @@ pip3.5 install -r ../requirements.txt
echo "" echo ""
echo "#################" echo "#################"
echo "Change in config:" echo "Change in config:"
diff --expand-tabs -W 100 -y /tmp/haproxy-webintarface.config haproxy-webintarface.config diff --expand-tabs -W 100 -y /tmp/haproxy-webintarface.config haproxy-wi.cfg
echo "" echo ""
echo "Please set your config" echo "Please set your config"
echo "" echo ""
echo "################" echo "################"
echo "Your config saved in /tmp/haproxy-webintarface.config. Please compare with new and set your env back" echo "Your config saved in /tmp/haproxy-webintarface.config. Please compare with new and set your env back"
echo "" echo ""
echo ""
echo ""
echo "################"
echo ""
echo ""
echo ""
echo "ATTENTION!!! New config file name: haproxy-wi.cfg"
echo ""
echo ""
echo ""
echo "################"
Loading…
Cancel
Save