Upgrade systemd file before building api.

This commit is contained in:
Roland 2023-05-23 16:41:48 -06:00
parent ccb28db95c
commit f764cee44e
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -1,5 +1,9 @@
#! /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
@ -7,7 +11,3 @@
cp /opt/wrolpi/nginx.conf /etc/nginx/nginx.conf
cp /opt/wrolpi/50x.html /var/www/50x.html
/usr/sbin/nginx -s reload
# Update systemd files.
cp /opt/wrolpi/etc/raspberrypios/wrolpi-api.service /etc/systemd/system/
/usr/bin/systemctl daemon-reload