mirror of https://github.com/Aidaho12/haproxy-wi
parent
9c1cad105a
commit
a9e99f44a1
|
@ -13,7 +13,7 @@ def get_app_dir():
|
|||
def get_config_var(sec, var):
|
||||
from configparser import ConfigParser, ExtendedInterpolation
|
||||
try:
|
||||
path_config = get_app_dir()+"/haproxy-webintarface.config"
|
||||
path_config = get_app_dir()+"/haproxy-wi.cfg"
|
||||
config = ConfigParser(interpolation=ExtendedInterpolation())
|
||||
config.read(path_config)
|
||||
except:
|
||||
|
|
|
@ -17,3 +17,4 @@ mysql_user = haproxy-wi
|
|||
mysql_password = haproxy-wi
|
||||
mysql_db = haproxywi
|
||||
mysql_host = 127.0.0.1
|
||||
|
15
update.sh
15
update.sh
|
@ -26,10 +26,21 @@ pip3.5 install -r ../requirements.txt
|
|||
echo ""
|
||||
echo "#################"
|
||||
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 "Please set your config"
|
||||
echo ""
|
||||
echo "################"
|
||||
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…
Reference in New Issue