Skip to content

Commit

Permalink
fixed pikvm/pikvm#275: don't overwrite ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Apr 13, 2021
1 parent ca430c2 commit aa3a5c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kvmd.install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa3a5c7

Please sign in to comment.