haproxy-wi/update.sh

26 lines
579 B
Bash
Raw Normal View History

2018-05-01 09:00:30 +00:00
#!/bin/bash
2018-05-08 09:12:16 +00:00
2018-05-01 09:00:30 +00:00
cp app/haproxy-webintarface.config /tmp/
git reset --hard
git pull https://github.com/Aidaho12/haproxy-wi.git
2018-05-08 09:12:16 +00:00
mkdir app/certs
2018-05-01 09:00:30 +00:00
chmod +x app/*py
chown -R apache:apache *
cd app/
./update_db.py
2018-05-06 17:07:13 +00:00
pip3 install -r ../requirements.txt
2018-05-01 09:00:30 +00:00
echo ""
echo "#################"
echo "Change in config:"
2018-05-07 19:09:56 +00:00
diff --expand-tabs -W 100 -y /tmp/haproxy-webintarface.config haproxy-webintarface.config
2018-05-01 09:00:30 +00:00
echo ""
echo "Please set your config"
echo ""
echo "################"
echo "Your config saved in /tmp/haproxy-webintarface.config. Please comare with new and set your env back"
echo ""