mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 19:17:19 +00:00
stop on first error with bash command
This commit is contained in:
parent
63c19025ef
commit
cdf848817f
1 changed files with 1 additions and 4 deletions
|
@ -1,13 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo Updating Zeppelin...
|
||||
|
||||
docker compose -f docker-compose.production.yml stop
|
||||
git pull
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "git pull failed. exiting."
|
||||
exit 1
|
||||
fi
|
||||
docker compose -f docker-compose.production.yml build
|
||||
docker compose -f docker-compose.production.yml up -d
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue