Deb: add as vncserver, etc alternative
This commit is contained in:
11
debian/postinst
vendored
11
debian/postinst
vendored
@@ -20,6 +20,17 @@ set -e
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
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)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|||||||
11
debian/prerm
vendored
11
debian/prerm
vendored
@@ -18,6 +18,17 @@ set -e
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
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)
|
remove|upgrade|deconfigure)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user