mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
commit
11f8d79e12
5 changed files with 24 additions and 9 deletions
15
50x.html
15
50x.html
|
|
@ -1,4 +1,4 @@
|
|||
<html>
|
||||
<html lang="en">
|
||||
<body>
|
||||
|
||||
<h1>Error!</h1>
|
||||
|
|
@ -8,9 +8,20 @@
|
|||
<p><b>sudo systemctl status wrolpi-app</b></p>
|
||||
<p><b>sudo systemctl status wrolpi-api</b></p>
|
||||
|
||||
<p>If either of those services are not running, start it:</p>
|
||||
<br/>
|
||||
<p>If either of those services are not running, start all WROLPi services:</p>
|
||||
|
||||
<p><b>sudo systemctl start wrolpi.target</b></p>
|
||||
|
||||
<br/>
|
||||
<p>Or, start them individually:</p>
|
||||
<p><b>sudo systemctl start wrolpi-app</b></p>
|
||||
<p><b>sudo systemctl start wrolpi-api</b></p>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h2>Can't start the services?</h2>
|
||||
<p>You can view the media directory by <a href="/media">clicking here</a></p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -22,5 +22,6 @@ channels:
|
|||
name: WROLPi # the pretty name for the channel
|
||||
url: https://www.youtube.com/channel/UC4t8bw1besFTyjW7ZBCOIrw/videos
|
||||
directory: videos/wrolpi # relative to `media_directory`
|
||||
download_frequency: 604800
|
||||
|
||||
timezone: America/Boise
|
||||
|
|
|
|||
13
install.sh
13
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
|
||||
|
|
@ -93,7 +91,7 @@ cp /opt/wrolpi/50x.html /var/www/50x.html
|
|||
/usr/sbin/nginx -s reload
|
||||
|
||||
# Create the WROLPi user
|
||||
grep wrolpi /etc/passwd || useradd -d /home/wrolpi wrolpi -s "$(command -v bash)"
|
||||
grep wrolpi /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)"
|
||||
chown -R wrolpi:wrolpi /opt/wrolpi
|
||||
|
||||
# Create the media directory. This should be mounted by the maintainer.
|
||||
|
|
@ -129,8 +127,13 @@ WROLPi has successfully been installed!
|
|||
Mount your external hard drive to /media/wrolpi if you have one.
|
||||
|
||||
Start the WROLPi services using:
|
||||
|
||||
# sudo systemctl start wrolpi.target
|
||||
|
||||
then navigate to: http://${ip}
|
||||
|
||||
Or, join to the Wifi hotspot:
|
||||
SSID: WROLPi
|
||||
Password: wrolpi hotspot
|
||||
|
||||
When on the hotspot, WROLPi is accessible at http://192.168.0.1
|
||||
"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ psycopg2-binary==2.9.3
|
|||
pytest-asyncio==0.17.0
|
||||
pytest==6.2.5
|
||||
pytz==2021.3
|
||||
PyYAML==6.0
|
||||
PyYAML==5.3.1
|
||||
requests==2.27.1
|
||||
Sanic-Cors==1.0.1
|
||||
sanic-openapi==0.6.2
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue