| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
. /usr/share/debconf/confmodule |
| 6 |
|
| 7 |
# These are for the generic editor links |
| 8 |
update-alternatives --install /usr/bin/editor editor /usr/bin/jove 60 \ |
| 9 |
--slave /usr/share/man/man1/editor.1.gz editor.1.gz \ |
| 10 |
/usr/share/man/man1/jove.1.gz |
| 11 |
update-alternatives --install /usr/bin/emacs emacs /usr/bin/jove 0 \ |
| 12 |
--slave /usr/share/man/man1/emacs.1.gz emacs.1.gz \ |
| 13 |
/usr/share/man/man1/jove.1.gz |
| 14 |
|
| 15 |
if dpkg --compare-versions "$2" le "4.17.2.0-1" ; then |
| 16 |
if [ -f /etc/init.d/jove ] |
| 17 |
then |
| 18 |
db_input high jove/removeinitd || true |
| 19 |
update-rc.d -f jove remove >/dev/null |
| 20 |
rm /etc/init.d/jove |
| 21 |
fi |
| 22 |
|
| 23 |
if ls -A /var/lib/jove/preserve/ >/dev/null |
| 24 |
then |
| 25 |
db_input high jove/preservefiles || true |
| 26 |
fi |
| 27 |
fi |
| 28 |
|
| 29 |
#DEBHELPER# |