Generate Keys on install.
This commit is contained in:
parent
555b7792f7
commit
62b2943f30
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@ Nightscout CGM in the cloud.
|
|||
%post
|
||||
%systemd_post nightscout.service
|
||||
|
||||
if [ "$1" = 1 ]; then
|
||||
pushd %{nodejs_sitelib}/%{name}
|
||||
/usr/bin/npm run-script generate-keys
|
||||
popd
|
||||
fi
|
||||
|
||||
%preun
|
||||
%systemd_preun nightscout.service
|
||||
|
||||
|
|
Loading…
Reference in a new issue