diff options
author | Devaev Maxim <[email protected]> | 2021-04-08 04:31:34 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-04-08 04:31:44 +0300 |
commit | 834064432d7130b116985ff6ca11df430c12a25c (patch) | |
tree | c0c8364b6382f89646d6c83f7ee1d334f1f12a5f | |
parent | 4a72a553210659697ac677f9c7db87bf40b05d5b (diff) |
fixed certs checking in pkgbuild
-rw-r--r-- | kvmd.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd.install b/kvmd.install index fdcd641c..73f9440a 100644 --- a/kvmd.install +++ b/kvmd.install @@ -16,12 +16,12 @@ post_upgrade() { chown kvmd /var/lib/kvmd/msd || true - if [ ! -d /etc/kvmd/nginx/ssl ]; then + if [ ! -d /etc/kvmd/nginx/ssl/server.crt ]; then echo "==> Generating KVMD-Nginx certificate ..." kvmd-gencert --do-the-thing fi - if [ ! -d /etc/kvmd/vnc/ssl ]; then + if [ ! -d /etc/kvmd/vnc/ssl/server.crt ]; then echo "==> Generating KVMD-VNC certificate ..." kvmd-gencert --do-the-thing --vnc fi |