summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install12
1 files changed, 11 insertions, 1 deletions
diff --git a/kvmd.install b/kvmd.install
index 5e00512b..db2cb3a3 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -1,7 +1,7 @@
post_install() {
post_upgrade
- echo "==> Generating KVMD certificate ..."
+ echo "==> Generating KVMD-Nginx certificate ..."
kvmd-gencert --do-the-thing
}
@@ -19,6 +19,16 @@ post_upgrade() {
chown kvmd /var/lib/kvmd/msd || true
+ if [ ! -d /etc/kvmd/vnc/ssl ]; then
+ echo "==> Generating KVMD-VNC certificate ..."
+ kvmd-gencert --do-the-thing --vnc
+ fi
+
+ chown root:root /etc/kvmd/vnc/ssl
+ chown root:root /etc/kvmd/nginx/ssl
+ chmod 755 /etc/kvmd/vnc/ssl
+ chmod 755 /etc/kvmd/nginx/ssl
+
echo "==> Patching configs ..."
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=pi3-disable-bt$/dtoverlay=disable-bt/g' /boot/config.txt
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=dwc2$/dtoverlay=dwc2,dr_mode=peripheral/g' /boot/config.txt