diff --git a/go.sh b/go.sh index de09465..aa09ab1 100644 --- a/go.sh +++ b/go.sh @@ -2,5 +2,10 @@ export IP_ADDRESS=$(/sbin/ip -o -4 addr list eno2 | awk '{print $4}' | cut -d/ - cp /secrets/certs/* nginx/filesystem/etc/nginx/certs docker compose build --build-arg IP_ADDRESS=$IP_ADDRESS +if [ "$?" != "0" ] +then + exit 1 +fi + docker compose down docker compose up -d