From 62b2943f309aa61490e9f4ee6c4e82bac95f455b Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Fri, 26 Feb 2021 13:47:04 +0000 Subject: [PATCH] Generate Keys on install. --- nightscout/nightscout.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nightscout/nightscout.spec b/nightscout/nightscout.spec index b2d069e..450a897 100644 --- a/nightscout/nightscout.spec +++ b/nightscout/nightscout.spec @@ -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