aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Taggart <taggart@riseup.net>2012-02-13 16:19:58 -0800
committerMatt Taggart <taggart@riseup.net>2012-02-13 16:19:58 -0800
commite02f8638bcdf08d59b1a13b8a5be5efe1f344f27 (patch)
tree8a2e4d157f55ecb2b00f13b6f5d8017715a69f83
parentd23068ecb593e7287fc70af809c3068fdeccb511 (diff)
downloadpuppet-virtual-e02f8638bcdf08d59b1a13b8a5be5efe1f344f27.tar.gz
puppet-virtual-e02f8638bcdf08d59b1a13b8a5be5efe1f344f27.tar.bz2
these have bashisms which don't work with dash as /bin/sh, so switch the scripts to bash and add a comment
-rwxr-xr-xfiles/munin/vserver_cpu_3
-rw-r--r--files/munin/vserver_loadavg3
-rwxr-xr-xfiles/munin/vserver_resources3
3 files changed, 6 insertions, 3 deletions
diff --git a/files/munin/vserver_cpu_ b/files/munin/vserver_cpu_
index 981f262..8ce3a95 100755
--- a/files/munin/vserver_cpu_
+++ b/files/munin/vserver_cpu_
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2006-2008 Holger Levsen and Micah Anderson
#
@@ -63,6 +63,7 @@
VSERVERS="$vservers"
+# FIXME: using arrays is a bashism
INFO=(`sed 's/.*:\t//' /proc/virtual/info 2>/dev/null || echo '<none>'`)
KCIN="$[ 16#${INFO[2]} ]";
diff --git a/files/munin/vserver_loadavg b/files/munin/vserver_loadavg
index 43ce5e1..147eff9 100644
--- a/files/munin/vserver_loadavg
+++ b/files/munin/vserver_loadavg
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2007 Andrei Morgan
# Copyright (C) 2008 Micah Anderson
@@ -56,6 +56,7 @@ fi
# if vservers are specified, use them; the default is to use all.
VSERVERS="$vservers"
+# FIXME: using arrays is a bashism
INFO=(`sed 's/.*:\t//' /proc/virtual/info 2>/dev/null || echo '<none>'`)
KCIN="$[ 16#${INFO[2]} ]";
diff --git a/files/munin/vserver_resources b/files/munin/vserver_resources
index 495614f..05dfecb 100755
--- a/files/munin/vserver_resources
+++ b/files/munin/vserver_resources
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2006-2008 Holger Levsen and Micah Anderson
#
@@ -127,6 +127,7 @@ VSERVERS="$vservers"
LIMITS="$limits"
RESOURCE="$resource"
+# FIXME: using arrays is a bashism
INFO=(`sed 's/.*:\t//' /proc/virtual/info 2>/dev/null || echo '<none>'`)
KCIN="$[ 16#${INFO[2]} ]";