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.
|
Description=Nightscout CGM.
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
WorkingDirectory /usr/lib/node_modules/nightscout
|
||||||
Execstart=/usr/bin/node /usr/lib/node_modules/nightscout/server.js
|
Execstart=/usr/bin/node /usr/lib/node_modules/nightscout/server.js
|
||||||
DynamicUser=yes
|
DynamicUser=yes
|
||||||
|
|
||||||
|
|
|
@ -54,11 +54,15 @@ cp -pr \
|
||||||
lib \
|
lib \
|
||||||
server.js \
|
server.js \
|
||||||
bundle \
|
bundle \
|
||||||
|
translations \
|
||||||
|
views \
|
||||||
|
bin \
|
||||||
|
static \
|
||||||
%{buildroot}%{nodejs_sitelib}/%{name}
|
%{buildroot}%{nodejs_sitelib}/%{name}
|
||||||
cp -pr node_modules %{buildroot}%{nodejs_sitelib}/%{name}
|
cp -pr node_modules %{buildroot}%{nodejs_sitelib}/%{name}
|
||||||
|
|
||||||
install -D docs/example-template.env %{buildroot}%{_sysconfdir}/nightscout/nightscout-environ
|
install -m 644 -D docs/example-template.env %{buildroot}%{_sysconfdir}/nightscout/nightscout-environ
|
||||||
install -D %{SOURCE1} %{buildroot}%{_unitdir}/nightscout.service
|
install -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/nightscout.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
Loading…
Reference in a new issue