Skip to content

Commit

Permalink
post_install is post_upgrade now
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 1, 2021
1 parent f5246c4 commit a266d7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kvmd.install
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
post_install() {
post_upgrade

echo "==> Generating KVMD-Nginx certificate ..."
kvmd-gencert --do-the-thing
}

post_upgrade() {
Expand All @@ -19,6 +16,11 @@ post_upgrade() {

chown kvmd /var/lib/kvmd/msd || true

if [ ! -d /etc/kvmd/nginx/ssl ]; then
echo "==> Generating KVMD-Nginx certificate ..."
kvmd-gencert --do-the-thing
fi

if [ ! -d /etc/kvmd/vnc/ssl ]; then
echo "==> Generating KVMD-VNC certificate ..."
kvmd-gencert --do-the-thing --vnc
Expand Down

0 comments on commit a266d7d

Please sign in to comment.