fixed certs checking in pkgbuild

This commit is contained in:
Devaev Maxim 2021-04-08 04:31:34 +03:00
parent 4a72a55321
commit 834064432d

View File

@ -16,12 +16,12 @@ post_upgrade() {
chown kvmd /var/lib/kvmd/msd || true 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 ..." echo "==> Generating KVMD-Nginx certificate ..."
kvmd-gencert --do-the-thing kvmd-gencert --do-the-thing
fi fi
if [ ! -d /etc/kvmd/vnc/ssl ]; then if [ ! -d /etc/kvmd/vnc/ssl/server.crt ]; then
echo "==> Generating KVMD-VNC certificate ..." echo "==> Generating KVMD-VNC certificate ..."
kvmd-gencert --do-the-thing --vnc kvmd-gencert --do-the-thing --vnc
fi fi