diff --git a/50x.html b/50x.html index 7b057994..2d1cf8de 100644 --- a/50x.html +++ b/50x.html @@ -1,4 +1,4 @@ - +
sudo systemctl status wrolpi-app
sudo systemctl status wrolpi-api
-If either of those services are not running, start it:
+If either of those services are not running, start all WROLPi services:
+sudo systemctl start wrolpi.target
+ +Or, start them individually:
sudo systemctl start wrolpi-app
sudo systemctl start wrolpi-api
+ +You can view the media directory by clicking here
+ diff --git a/install.sh b/install.sh index e0056a48..b7e0e020 100755 --- a/install.sh +++ b/install.sh @@ -64,8 +64,6 @@ pip3 --version || ( curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && python3 /tmp/get-pip.py ) -python3 -m venv /opt/wrolpi/venv -. /opt/wrolpi/venv/bin/activate # Install python requirements files pip3 install -r /opt/wrolpi/requirements.txt @@ -85,7 +83,7 @@ sudo -u postgres psql -c '\l' | grep wrolpi || ( sudo -u postgres createdb -O wrolpi wrolpi ) # Initialize the WROLPi database. -(cd /opt/wrolpi && /opt/wrolpi/venv/bin/python3 /opt/wrolpi/main.py db upgrade) +(cd /opt/wrolpi && /usr/bin/python3 /opt/wrolpi/main.py db upgrade) # Install the WROLPi nginx config over the default nginx config. cp /opt/wrolpi/nginx.conf /etc/nginx/nginx.conf diff --git a/systemd/wrolpi-api.service b/systemd/wrolpi-api.service index b309db0b..212b76ec 100644 --- a/systemd/wrolpi-api.service +++ b/systemd/wrolpi-api.service @@ -5,7 +5,7 @@ PartOf=wrolpi.target [Service] Environment=PYTHONUNBUFFERED=1 -ExecStart=/opt/wrolpi/venv/bin/python /opt/wrolpi/main.py api +ExecStart=/usr/bin/python3 /opt/wrolpi/main.py api Group=wrolpi User=wrolpi WorkingDirectory=/opt/wrolpi/