diff --git a/nightscout/nightscout.service b/nightscout/nightscout.service index a9cc9d6..1fb8967 100644 --- a/nightscout/nightscout.service +++ b/nightscout/nightscout.service @@ -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 diff --git a/nightscout/nightscout.spec b/nightscout/nightscout.spec index 934c995..9839159 100644 --- a/nightscout/nightscout.spec +++ b/nightscout/nightscout.spec @@ -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