haproxy-wi/update.sh

35 lines
594 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-10-11 02:49:50 +00:00
cp app/haproxy-wi.cfg /tmp/
2018-05-01 09:00:30 +00:00
mv -f /tmp/haproxy-wi.cfg app/haproxy-wi.cfg
2019-09-04 06:26:52 +00:00
git reset --hard
git pull https://github.com/Aidaho12/haproxy-wi.git
2018-11-26 10:00:25 +00:00
2019-09-08 10:09:54 +00:00
chmod +x app/*py
chmod +x app/tools/*py
if hash apt-get 2>/dev/null; then
sudo chown -R www-data:www-data app/
else
sudo chown -R apache:apache app/
fi
2018-05-01 09:00:30 +00:00
cd app/
2018-09-01 10:43:25 +00:00
./create_db.py
2018-05-01 09:00:30 +00:00
2018-05-06 17:07:13 +00:00
pip3 install -r ../requirements.txt
2018-09-20 07:32:08 +00:00
pip3.5 install -r ../requirements.txt
2018-10-11 02:49:50 +00:00
chmod +x ../update.sh
2018-10-04 14:56:02 +00:00
echo "################"
echo ""
echo ""
echo ""
2018-10-11 02:49:50 +00:00
echo "ATTENTION!!! New config file name is: haproxy-wi.cfg"
2018-10-04 14:56:02 +00:00
echo ""
echo ""
echo ""
echo "################"