From 7ffd3c20eb7bcff203014e42fe5d00e99b78ac4a Mon Sep 17 00:00:00 2001 From: akihiro_k2k Date: Thu, 8 Nov 2018 14:44:04 +0900 Subject: [PATCH] Fix: Moving haproxy-wi.cfg before running ./create_db.py --- update.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 "################"