From 316cd0a985f1e404742e6152f1112434f8b16ef7 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Fri, 11 Mar 2011 16:21:16 +0100 Subject: [PATCH] Report database sizes. --- debian/postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/debian/postinst b/debian/postinst index a192ddc..6f7ca9c 100644 --- a/debian/postinst +++ b/debian/postinst @@ -216,6 +216,20 @@ EOF df -h | $GPG >> $REQUEST_FILE +# attachment: database sizes +if [ -d /var/lib/mysql -o -d /var/lib/postgresql ]; then + cat >> $REQUEST_FILE </dev/null \ + | $GPG >> $REQUEST_FILE +fi + # attachment: client config cat >> $REQUEST_FILE <