projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f2da03
)
Fix munin error.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Wed, 1 Feb 2012 13:52:50 +0000
(14:52 +0100)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Wed, 1 Feb 2012 13:52:50 +0000
(14:52 +0100)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
94db9b0
..
f690377
100644
(file)
--- 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