summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-08 04:31:34 +0300
committerDevaev Maxim <[email protected]>2021-04-08 04:31:44 +0300
commit834064432d7130b116985ff6ca11df430c12a25c (patch)
treec0c8364b6382f89646d6c83f7ee1d334f1f12a5f /kvmd.install
parent4a72a553210659697ac677f9c7db87bf40b05d5b (diff)
fixed certs checking in pkgbuild
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install4
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