mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Installing WROLPi help environment for RPi and Debian.
This commit is contained in:
parent
a491ea7677
commit
57262442bd
6 changed files with 28 additions and 9 deletions
|
|
@ -46,9 +46,7 @@ sed -i 's/port = 5433/port = 5432/' /etc/postgresql/15/main/postgresql.conf
|
|||
|
||||
mkdir /media/wrolpi
|
||||
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-api.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-app.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-kiwix.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-*.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi.target /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf
|
||||
|
||||
|
|
|
|||
12
etc/raspberrypios/wrolpi-help.service
Normal file
12
etc/raspberrypios/wrolpi-help.service
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=WROLPi Help Documents
|
||||
PartOf=wrolpi.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/wrolpi-help/venv/bin/mkdocs serve -a 0.0.0.0:8086
|
||||
Group=wrolpi
|
||||
User=wrolpi
|
||||
WorkingDirectory=/opt/wrolpi-help/
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -56,9 +56,7 @@ visudo -c -f /etc/sudoers.d/90-wrolpi
|
|||
mkdir /media/wrolpi
|
||||
chown wrolpi:wrolpi /media/wrolpi
|
||||
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-api.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-app.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-kiwix.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-*.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi.target /etc/systemd/system/
|
||||
|
||||
# NetworkManager for the hotspot.
|
||||
|
|
|
|||
|
|
@ -43,14 +43,13 @@ chmod 0440 /etc/sudoers.d/90-wrolpi
|
|||
visudo -c -f /etc/sudoers.d/90-wrolpi
|
||||
|
||||
# Install the systemd services
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-api.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-app.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi-kiwix.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi*.service /etc/systemd/system/
|
||||
cp /opt/wrolpi/etc/raspberrypios/wrolpi.target /etc/systemd/system/
|
||||
/usr/bin/systemctl daemon-reload
|
||||
systemctl enable wrolpi-api.service
|
||||
systemctl enable wrolpi-app.service
|
||||
systemctl enable wrolpi-kiwix.service
|
||||
systemctl enable wrolpi-help.service
|
||||
|
||||
cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf
|
||||
# Configure Apache2 to listen on 8084.
|
||||
|
|
|
|||
|
|
@ -38,6 +38,12 @@ if [[ ! -f /opt/wrolpi-blobs/gis-map.dump.gz || ! -s /opt/wrolpi-blobs/gis-map.d
|
|||
wget https://wrolpi.nyc3.cdn.digitaloceanspaces.com/gis-map.dump.gz -O /opt/wrolpi-blobs/gis-map.dump.gz
|
||||
fi
|
||||
|
||||
# Install WROLPi Help.
|
||||
git clone https://github.com/wrolpi/wrolpi-help.git /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
|
||||
|
||||
# Repair will install configs and restart services.
|
||||
/opt/wrolpi/repair.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,12 @@ if [[ ! -f /opt/wrolpi-blobs/gis-map.dump.gz || ! -s /opt/wrolpi-blobs/gis-map.d
|
|||
wget https://wrolpi.nyc3.cdn.digitaloceanspaces.com/gis-map.dump.gz -O /opt/wrolpi-blobs/gis-map.dump.gz
|
||||
fi
|
||||
|
||||
# Install WROLPi Help.
|
||||
git clone https://github.com/wrolpi/wrolpi-help.git /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
|
||||
|
||||
# Repair will install configs and restart services.
|
||||
/opt/wrolpi/repair.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue