You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cp app/haproxy-wi.cfg /tmp/
|
|
|
|
|
|
|
|
mv -f /tmp/haproxy-wi.cfg app/haproxy-wi.cfg
|
|
|
|
|
|
|
|
git reset --hard
|
|
|
|
git pull https://github.com/Aidaho12/haproxy-wi.git
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
cd app/
|
|
|
|
./create_db.py
|
|
|
|
|
|
|
|
pip3 install -r ../requirements.txt
|
|
|
|
pip3.5 install -r ../requirements.txt
|
|
|
|
chmod +x ../update.sh
|
|
|
|
|
|
|
|
echo "################"
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "ATTENTION!!! New config file name is: haproxy-wi.cfg"
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo "################"
|