summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-13 18:14:34 +0300
committerDevaev Maxim <[email protected]>2021-04-13 18:14:34 +0300
commitaa3a5c702c8c62b78415b3447c8c3a83439c4625 (patch)
treecaeef5b058f4923a0a4389ceb1a7d9f7ee13e395 /kvmd.install
parentca430c23adacc6b73099bdcc361894086c8a4ff0 (diff)
fixed pikvm/pikvm#275: don't overwrite ssl
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 73f9440a..75e099c9 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/server.crt ]; then
+ if [ ! -e /etc/kvmd/nginx/ssl/server.crt ]; then
echo "==> Generating KVMD-Nginx certificate ..."
kvmd-gencert --do-the-thing
fi
- if [ ! -d /etc/kvmd/vnc/ssl/server.crt ]; then
+ if [ ! -e /etc/kvmd/vnc/ssl/server.crt ]; then
echo "==> Generating KVMD-VNC certificate ..."
kvmd-gencert --do-the-thing --vnc
fi