Skip to content

Commit

Permalink
fixed certs checking in pkgbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Apr 8, 2021
1 parent 4a72a55 commit 8340644
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 ]; 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
Expand Down

0 comments on commit 8340644

Please sign in to comment.