Nightscout now attempts to run

This commit is contained in:
Alex Manning 2021-04-06 18:18:23 +01:00
parent 255a29b9fb
commit f2a57293a1
2 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,7 @@
Description=Nightscout CGM.
[Service]
WorkingDirectory /usr/lib/node_modules/nightscout
Execstart=/usr/bin/node /usr/lib/node_modules/nightscout/server.js
DynamicUser=yes

View file

@ -54,11 +54,15 @@ cp -pr \
lib \
server.js \
bundle \
translations \
views \
bin \
static \
%{buildroot}%{nodejs_sitelib}/%{name}
cp -pr node_modules %{buildroot}%{nodejs_sitelib}/%{name}
install -D docs/example-template.env %{buildroot}%{_sysconfdir}/nightscout/nightscout-environ
install -D %{SOURCE1} %{buildroot}%{_unitdir}/nightscout.service
install -m 644 -D docs/example-template.env %{buildroot}%{_sysconfdir}/nightscout/nightscout-environ
install -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/nightscout.service
%files
%license LICENSE