aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary.postinst
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-09-10 14:40:05 +0200
committerPetter Reinholdtsen <pere@hungry.com>2014-09-10 14:40:05 +0200
commit6362b1eb70985017505819d7a43ee9323ef2be3a (patch)
treef857c91c3b564f56a8f12ebbea34644627e742a7 /debian/sitesummary.postinst
parentc47e02e8ebbd5396663fdd1a6a87de62de771bdd (diff)
downloadsitesummary-6362b1eb70985017505819d7a43ee9323ef2be3a.tar.gz
sitesummary-6362b1eb70985017505819d7a43ee9323ef2be3a.tar.bz2
sitesummary-6362b1eb70985017505819d7a43ee9323ef2be3a.tar.xz
Fix installation problem when sitesummary is preseeded to update munin configuration. Make sure /etc/sitesummary/ is created when postinst try to create a file there.
Diffstat (limited to 'debian/sitesummary.postinst')
-rw-r--r--debian/sitesummary.postinst1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index e489564..031b9f4 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -63,6 +63,7 @@ case "$1" in
if [ ! -f $config ] ; then
db_get sitesummary/replace-munin-config
if [ true = "$RET" ] ; then
+ mkdir -p /etc/sitesummary
echo 'MUNINDIR=/etc/munin' > $config
fi
fi