mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding wrolpi-help to git safe directory. Help install failure should not break upgrade.
This commit is contained in:
parent
792e0c15cd
commit
4425b4d8a3
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue