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.
haproxy-wi/update.sh

34 lines
861 B

#!/bin/bash
7 years ago
cp app/haproxy-webintarface.config /tmp/
git reset --hard
git pull https://github.com/Aidaho12/haproxy-wi.git
mkdir keys
7 years ago
mkdir app/certs
chmod +x app/*py
chmod +x app/tools/*py
if hash apt-get 2>/dev/null; then
apt-get install git net-tools lshw dos2unix apache2 gcc netcat python3-pip gcc-c++ -y
else
6 years ago
yum -y install git nmap-ncat net-tools python35u dos2unix python35u-pip httpd python35u-devel gcc-c++
fi
cd app/
6 years ago
./create_db.py
7 years ago
pip3 install -r ../requirements.txt
6 years ago
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
echo ""
echo "Please set your config"
echo ""
echo "################"
6 years ago
echo "Your config saved in /tmp/haproxy-webintarface.config. Please compare with new and set your env back"
echo ""