From fd6c20f705f1313feeb7dd5143d70f24fceb5c4c Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Wed, 1 Feb 2012 14:52:50 +0100 Subject: [PATCH] Fix munin error. --- src/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 94db9b0..f690377 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -952,8 +952,10 @@ upgrade_munin () { local config backup hostname domain # new htmldir location - mkdir -p /var/cache/munin - mv /var/www/munin /var/cache/munin/www + if [ -d /var/www/munin -a ! -e /var/cache/munin/www ]; then + mkdir -p /var/cache/munin + mv /var/www/munin /var/cache/munin/www + fi for pkg_name in munin munin-node; do pkg $pkg_name lt '1.4.5-3' || continue -- 1.7.10.4