mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
15 lines
407 B
Bash
Executable file
15 lines
407 B
Bash
Executable file
#! /usr/bin/env bash
|
|
|
|
# Update systemd files.
|
|
cp /opt/wrolpi/etc/raspberrypios/wrolpi-api.service /etc/systemd/system/
|
|
/usr/bin/systemctl daemon-reload
|
|
|
|
# Upgrade the API and App.
|
|
/bin/bash /opt/wrolpi/scripts/build_api_and_app.sh
|
|
|
|
# Update nginx configs
|
|
cp /opt/wrolpi/nginx.conf /etc/nginx/nginx.conf
|
|
cp /opt/wrolpi/50x.html /var/www/50x.html
|
|
/usr/sbin/nginx -s reload
|
|
|
|
chown -R wrolpi:wrolpi /opt/wrolpi
|