diff --git a/update.sh b/update.sh index bf574ed3..f4ab31c9 100644 --- a/update.sh +++ b/update.sh @@ -1,10 +1,14 @@ #!/bin/bash +# set -x + cp app/haproxy-wi.cfg /tmp/ git reset --hard git pull https://github.com/Aidaho12/haproxy-wi.git +mv -f /tmp/haproxy-wi.cfg app/haproxy-wi.cfg + mkdir keys mkdir app/certs chmod +x app/*py @@ -24,7 +28,6 @@ pip3 install -r ../requirements.txt pip3.5 install -r ../requirements.txt chmod +x ../update.sh -mv /tmp/haproxy-wi.cfg app/haproxy-wi.cfg echo "################" echo "" echo "" @@ -33,4 +36,4 @@ echo "ATTENTION!!! New config file name is: haproxy-wi.cfg" echo "" echo "" echo "" -echo "################" \ No newline at end of file +echo "################"