33 lines
763 B
Plaintext
33 lines
763 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
. /usr/share/debconf/confmodule
|
||
|
db_version 2.0 || [ 0 -lt 30 ]
|
||
|
|
||
|
db_input medium "ldap-account-manager/config-webserver" || true
|
||
|
db_go
|
||
|
db_input low "ldap-account-manager/alias" || true
|
||
|
db_go
|
||
|
db_input low "ldap-account-manager/passwd" || true
|
||
|
db_go
|
||
|
db_input medium "ldap-account-manager/restart-webserver" || true
|
||
|
db_go
|
||
|
if dpkg --compare-versions "$2" le 0.5.0; \
|
||
|
then
|
||
|
if dpkg --compare-versions "$2" ge 0.1.0; \
|
||
|
then
|
||
|
db_input high "ldap-account-manager/note-0_4_9-upgrade" || true
|
||
|
db_go
|
||
|
fi
|
||
|
elif dpkg --compare-versions "$2" le 1.0.0; \
|
||
|
then
|
||
|
if dpkg --compare-versions "$2" ge 0.5.0; \
|
||
|
then
|
||
|
db_input high "ldap-account-manager/note-1_0_0-upgrade" || true
|
||
|
db_go
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|
||
|
exit 0
|