[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-805-gcb3c644
Andreas Beckmann
debian at abeckmann.de
Tue Jun 19 00:15:14 UTC 2012
The following commit has been merged in the develop branch:
commit 45fc5dca5764bdea42a0354f5de8f7c8cd70cfd0
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Tue Jun 19 00:15:30 2012 +0200
scripts-leftovers: enable MySQL DB purge
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/org/piuparts.debian.org/etc/scripts-leftovers/pre_remove_preseed_cleanup b/org/piuparts.debian.org/etc/scripts-leftovers/pre_remove_preseed_cleanup
index d8045da..9c00ba6 100755
--- a/org/piuparts.debian.org/etc/scripts-leftovers/pre_remove_preseed_cleanup
+++ b/org/piuparts.debian.org/etc/scripts-leftovers/pre_remove_preseed_cleanup
@@ -18,4 +18,11 @@ case ${PIUPARTS_OBJECTS%%=*} in
;;
esac
+if [ -d /var/lib/mysql ]; then
+ log_debug
+ echo "Enabling MySQL database purge."
+ echo "mysql-server-5.1 mysql-server-5.1/postrm_remove_databases boolean true" | debconf-set-selections
+ echo "mysql-server-5.5 mysql-server-5.5/postrm_remove_databases boolean true" | debconf-set-selections
+fi
+
exit 0
--
piuparts git repository
More information about the Piuparts-commits
mailing list