diff --git a/update.sh b/update.sh index e445c60..7ec70b2 100755 --- a/update.sh +++ b/update.sh @@ -2,11 +2,19 @@ cd "${0%/*}" || exit -mkdir -p workdir +echo "Creating workdir..." +mkdir -p workdir || exit # needs the presence of a docker-compose.yml file (use the provided example) -docker compose down && \ -git pull && \ -mvn clean package && \ -docker compose up -d \ No newline at end of file +echo "Stopping service..." +docker compose down || exit + +echo "Pulling new version..." +git pull || exit + +echo "Compiling new version..." +mvn clean package || exit + +echo "Starting service" +docker compose up -d || exit \ No newline at end of file