[Piuparts-commits] [piuparts] 03/11: pre_distupgrade_exceptions: work around missing /var/lib/cyrus/db
Holger Levsen
holger at layer-acht.org
Fri Apr 28 16:50:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 2e2fc4529aeab069a7523aa71505f94b7c85382e
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Apr 25 02:27:53 2017 +0200
pre_distupgrade_exceptions: work around missing /var/lib/cyrus/db
the problem was caused during the cyrus 2.2 -> 2.4 (squeeze -> wheezy)
upgrade, but only shows up during the wheezy -> jessie upgrade
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
custom-scripts/scripts/pre_distupgrade_exceptions | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/custom-scripts/scripts/pre_distupgrade_exceptions b/custom-scripts/scripts/pre_distupgrade_exceptions
index e3f7604..e4be39a 100755
--- a/custom-scripts/scripts/pre_distupgrade_exceptions
+++ b/custom-scripts/scripts/pre_distupgrade_exceptions
@@ -89,6 +89,13 @@ fi
if [ "$PIUPARTS_DISTRIBUTION_NEXT" = "jessie" ]; then
case ${PIUPARTS_OBJECTS%%=*} in
+ *cyrus*)
+ # something was not working properly during the upgrade from 2.2 to 2.4
+ if is_installed cyrus-common && [ ! -d /var/lib/cyrus/db ]; then
+ echo "FIXING missing /var/lib/cyrus/db"
+ cyrus-makedirs --cleansquat
+ fi
+ ;;
ekeyd-uds)
# ekeyd-uds was removed after squeeze, maintainer scripts are incompatible with udev/jessie
log_debug
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list