Deb: remove /etc/kasmvnc and cert generation as we use snakeoil now

This commit is contained in:
Dmitry Maksyoma 2021-01-21 00:14:30 +13:00
parent a479b2fcd4
commit 2b9a4d0d8b
3 changed files with 0 additions and 27 deletions

1
debian/dirs vendored
View File

@ -1 +0,0 @@
etc/kasmvnc

23
debian/postinst vendored
View File

@ -17,27 +17,6 @@ set -e
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
kasmvnc_group="kasmvnc"
create_kasmvnc_group() {
if ! getent group "$kasmvnc_group" >/dev/null; then
addgroup --quiet --system "$kasmvnc_group"
fi
}
make_self_signed_certificate() {
local cert_file=/etc/kasmvnc/server.pem
[ -f "$cert_file" ] && return 0
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout "$cert_file" \
-out "$cert_file" -subj \
"/C=US/ST=VA/L=None/O=None/OU=DoFu/CN=kasm/emailAddress=none@none.none"
chgrp "$kasmvnc_group" "$cert_file"
chmod g+r "$cert_file"
}
create_kasmvnc_group
case "$1" in
configure)
bindir=/usr/bin
@ -51,8 +30,6 @@ case "$1" in
--slave "$mandir/man1/$generic_command.1.gz" "$generic_command.1.gz" \
"$mandir/man1/$kasm_command.1.gz"
done
make_self_signed_certificate
;;
abort-upgrade|abort-remove|abort-deconfigure)

3
debian/postrm vendored
View File

@ -20,9 +20,6 @@ set -e
case "$1" in
purge)
rm -r /etc/kasmvnc
;;
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;