From dc9384ba4b725faef081046a8f6d76414b1ab8aa Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 24 Feb 2023 17:31:08 -0700 Subject: [PATCH] Calling second upgrade script so new upgrades can be pulled from git. --- scripts/upgrade.sh | 4 ++++ upgrade.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 scripts/upgrade.sh 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