From 2b9a4d0d8b2398ea8a838c629733aa18a9896e6d Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Thu, 21 Jan 2021 00:14:30 +1300 Subject: [PATCH] Deb: remove /etc/kasmvnc and cert generation as we use snakeoil now --- debian/dirs | 1 - debian/postinst | 23 ----------------------- debian/postrm | 3 --- 3 files changed, 27 deletions(-) delete mode 100644 debian/dirs diff --git a/debian/dirs b/debian/dirs deleted file mode 100644 index ae5bbdc..0000000 --- a/debian/dirs +++ /dev/null @@ -1 +0,0 @@ -etc/kasmvnc diff --git a/debian/postinst b/debian/postinst index c92f80a..8a1f407 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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) diff --git a/debian/postrm b/debian/postrm index 2d34fa5..9f9ec2c 100644 --- a/debian/postrm +++ b/debian/postrm @@ -20,9 +20,6 @@ set -e case "$1" in - purge) - rm -r /etc/kasmvnc - ;; purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;;