Generate Keys on install.

This commit is contained in:
Alex Manning 2021-02-26 13:47:04 +00:00
parent 555b7792f7
commit 62b2943f30

View file

@ -27,6 +27,12 @@ Nightscout CGM in the cloud.
%post %post
%systemd_post nightscout.service %systemd_post nightscout.service
if [ "$1" = 1 ]; then
pushd %{nodejs_sitelib}/%{name}
/usr/bin/npm run-script generate-keys
popd
fi
%preun %preun
%systemd_preun nightscout.service %systemd_preun nightscout.service