mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
20 lines
646 B
Bash
Executable file
20 lines
646 B
Bash
Executable file
#! /usr/bin/env bash
|
|
# Installs any new dependencies of the App and API. Uses internet.
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# Install any App dependencies.
|
|
cd /opt/wrolpi/app || exit 1
|
|
npm install || npm install || npm install || npm install # try install multiple times :(
|
|
|
|
# Install any new Python requirements.
|
|
/opt/wrolpi/venv/bin/pip3 install --upgrade -r /opt/wrolpi/requirements.txt
|
|
# Upgrade the WROLPi database.
|
|
(cd /opt/wrolpi && /opt/wrolpi/venv/bin/python3 /opt/wrolpi/main.py db upgrade)
|
|
|
|
# Upgrade WROLPi Help.
|
|
/opt/wrolpi/scripts/install_help_service.sh || echo "Help install failed."
|
|
|
|
# Install any configs, restart services.
|
|
/opt/wrolpi/repair.sh
|