diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh new file mode 100644 index 00000000..b43d8c6c --- /dev/null +++ b/scripts/upgrade.sh @@ -0,0 +1,4 @@ +#! /usr/bin/env bash + +# Upgrade the API and App. +/bin/bash /opt/wrolpi/scripts/build_api_and_app.sh diff --git a/upgrade.sh b/upgrade.sh index 66ec98a8..029483b5 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -43,7 +43,7 @@ systemctl stop wrolpi-app # Pull the latest commit of the requested branch. (cd /opt/wrolpi && git fetch && git checkout "${BRANCH}" && git reset --hard origin/"${BRANCH}") || exit 4 -/opt/wrolpi/scripts/build_api_and_app.sh 2>&1 | tee /opt/wrolpi/upgrade.log +/opt/wrolpi/scripts/upgrade.sh 2>&1 | tee /opt/wrolpi/upgrade.log set +x