mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-29 03:23:09 +01:00
Deb: remove /etc/kasmvnc and cert generation as we use snakeoil now
This commit is contained in:
parent
a479b2fcd4
commit
2b9a4d0d8b
1
debian/dirs
vendored
1
debian/dirs
vendored
@ -1 +0,0 @@
|
|||||||
etc/kasmvnc
|
|
23
debian/postinst
vendored
23
debian/postinst
vendored
@ -17,27 +17,6 @@ set -e
|
|||||||
# for details, see https://www.debian.org/doc/debian-policy/ or
|
# for details, see https://www.debian.org/doc/debian-policy/ or
|
||||||
# the debian-policy package
|
# 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
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
bindir=/usr/bin
|
bindir=/usr/bin
|
||||||
@ -51,8 +30,6 @@ case "$1" in
|
|||||||
--slave "$mandir/man1/$generic_command.1.gz" "$generic_command.1.gz" \
|
--slave "$mandir/man1/$generic_command.1.gz" "$generic_command.1.gz" \
|
||||||
"$mandir/man1/$kasm_command.1.gz"
|
"$mandir/man1/$kasm_command.1.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
make_self_signed_certificate
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
3
debian/postrm
vendored
3
debian/postrm
vendored
@ -20,9 +20,6 @@ set -e
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
purge)
|
|
||||||
rm -r /etc/kasmvnc
|
|
||||||
;;
|
|
||||||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user