Adding wrolpi-help to git safe directory. Help install failure should not break upgrade.

This commit is contained in:
Roland 2023-11-23 16:22:46 -07:00
parent 792e0c15cd
commit 4425b4d8a3
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@ set -e
# Install WROLPi Help repo.
git clone https://github.com/wrolpi/wrolpi-help.git /opt/wrolpi-help || :
git config --global --add safe.directory /opt/wrolpi-help
(cd /opt/wrolpi-help && git fetch && git checkout master && git reset --hard origin/master)
python3 -m venv /opt/wrolpi-help/venv
/opt/wrolpi-help/venv/bin/pip3 install -r /opt/wrolpi-help/requirements.txt

View file

@ -14,7 +14,7 @@ npm install || npm install || npm install || npm install # try install multiple
(cd /opt/wrolpi && /opt/wrolpi/venv/bin/python3 /opt/wrolpi/main.py db upgrade)
# Upgrade WROLPi Help.
/opt/wrolpi/scripts/install_help_service.sh
/opt/wrolpi/scripts/install_help_service.sh || echo "Help install failed."
# Install any configs, restart services.
/opt/wrolpi/repair.sh