diff options
author | Devaev Maxim <[email protected]> | 2021-03-01 09:36:34 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-03-01 09:36:34 +0300 |
commit | a266d7dfd20aa3f5b3142bb1192a9397a60d60c8 (patch) | |
tree | 76052895bf47a840d9cb17046a5b2b53b90980ab | |
parent | f5246c410e8daed03052b84b222cf498843c4cd8 (diff) |
post_install is post_upgrade now
-rw-r--r-- | kvmd.install | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kvmd.install b/kvmd.install index ae2297d4..fdcd641c 100644 --- a/kvmd.install +++ b/kvmd.install @@ -1,8 +1,5 @@ post_install() { post_upgrade - - echo "==> Generating KVMD-Nginx certificate ..." - kvmd-gencert --do-the-thing } post_upgrade() { @@ -19,6 +16,11 @@ post_upgrade() { chown kvmd /var/lib/kvmd/msd || true + if [ ! -d /etc/kvmd/nginx/ssl ]; then + echo "==> Generating KVMD-Nginx certificate ..." + kvmd-gencert --do-the-thing + fi + if [ ! -d /etc/kvmd/vnc/ssl ]; then echo "==> Generating KVMD-VNC certificate ..." kvmd-gencert --do-the-thing --vnc |