Calling second upgrade script so new upgrades can be pulled from git.

This commit is contained in:
Roland 2023-02-24 17:31:08 -07:00
parent abb0b49315
commit dc9384ba4b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 5 additions and 1 deletions

4
scripts/upgrade.sh Normal file
View file

@ -0,0 +1,4 @@
#! /usr/bin/env bash
# Upgrade the API and App.
/bin/bash /opt/wrolpi/scripts/build_api_and_app.sh

View file

@ -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