Nightscout now attempts to run
This commit is contained in:
parent
255a29b9fb
commit
f2a57293a1
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue