mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-02 11:39:12 +01:00
Deb: add as vncserver, etc alternative
This commit is contained in:
parent
f8c3d981bf
commit
a7e7deaf99
11
debian/postinst
vendored
11
debian/postinst
vendored
@ -20,6 +20,17 @@ set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
bindir=/usr/bin
|
||||
mandir=/usr/share/man
|
||||
commands="kasmvncserver kasmvncpasswd kasmvncconfig Xkasmvnc"
|
||||
|
||||
for kasm_command in $commands; do
|
||||
generic_command=`echo "$kasm_command" | sed -e 's/kasm//'`;
|
||||
update-alternatives --install "$bindir/$generic_command" \
|
||||
"$generic_command" "$bindir/$kasm_command" 90 \
|
||||
--slave "$mandir/man1/$generic_command.1.gz" "$generic_command.1.gz" \
|
||||
"$mandir/man1/$kasm_command.1.gz"
|
||||
done
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
11
debian/prerm
vendored
11
debian/prerm
vendored
@ -18,6 +18,17 @@ set -e
|
||||
|
||||
|
||||
case "$1" in
|
||||
remove)
|
||||
bindir=/usr/bin
|
||||
mandir=/usr/share/man
|
||||
commands="kasmvncserver kasmvncpasswd kasmvncconfig Xkasmvnc"
|
||||
|
||||
for kasm_command in $commands; do
|
||||
generic_command=`echo "$kasm_command" | sed -e 's/kasm//'`;
|
||||
update-alternatives --remove "$generic_command" "$bindir/$kasm_command"
|
||||
done
|
||||
;;
|
||||
|
||||
remove|upgrade|deconfigure)
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user