Commit 4083bc8b authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Tidied postinst to be less mean. Added predepends for dpkg.

parent 5a30e6bb
...@@ -9,6 +9,7 @@ XS-Ruby-Versions: all ...@@ -9,6 +9,7 @@ XS-Ruby-Versions: all
Package: symbiosis-email Package: symbiosis-email
Architecture: all Architecture: all
Pre-Depends: dpkg (>= 1.15.7.2)
Depends: symbiosis-common (>= 2012:0221), exim4-daemon-heavy, dovecot-sieve, dovecot-managesieved, dovecot-imapd, dovecot-pop3d, adduser, make, clamav-daemon, clamav-freshclam, spamassassin, ruby, ${misc:Depends} Depends: symbiosis-common (>= 2012:0221), exim4-daemon-heavy, dovecot-sieve, dovecot-managesieved, dovecot-imapd, dovecot-pop3d, adduser, make, clamav-daemon, clamav-freshclam, spamassassin, ruby, ${misc:Depends}
Recommends: symbiosis-webmail Recommends: symbiosis-webmail
Replaces: bytemark-vhost-email, symbiosis-monit (<< 2011:1206), symbiosis-test Replaces: bytemark-vhost-email, symbiosis-monit (<< 2011:1206), symbiosis-test
......
...@@ -11,14 +11,27 @@ for file in 50-rewrite/10-localhost-rewrite ; do ...@@ -11,14 +11,27 @@ for file in 50-rewrite/10-localhost-rewrite ; do
"2013:0731" -- "$@" "2013:0731" -- "$@"
done done
case "$1" in
install|upgrade)
#
# Move the exim4 config out of the way when upgrading (it will be regenerated later)
#
if [ -e /etc/exim4/exim4.conf ] ; then
echo "I: Moving exim4.conf out of the way to prevent breakage on upgrade"
mv -vf /etc/exim4/exim4.conf /etc/exim4/exim4.conf.symbiosis-old
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#
# Move the exim4 config out of the way when upgrading (it will be regenerated later)
#
if [ -e /etc/exim4/exim4.conf ] ; then
echo "I: Moving exim4.conf out of the way to prevent breakage on upgrade"
mv -vf /etc/exim4/exim4.conf /etc/exim4/exim4.conf.symbiosis-old
fi
#DEBHELPER# #DEBHELPER#
exit 0 exit 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment