]> gitweb.fluxo.info Git - puppet-virtual.git/commitdiff
these have bashisms which don't work with dash as /bin/sh, so switch the scripts...
authorMatt Taggart <taggart@riseup.net>
Tue, 14 Feb 2012 00:19:58 +0000 (16:19 -0800)
committerMatt Taggart <taggart@riseup.net>
Tue, 14 Feb 2012 00:19:58 +0000 (16:19 -0800)
files/munin/vserver_cpu_
files/munin/vserver_loadavg
files/munin/vserver_resources

index 981f2621e3659a77e1613107d396b05bce61ebec..8ce3a955ec39e8c60adfce3415d82afebbe74aa3 100755 (executable)
@@ -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]} ]";
 
index 43ce5e1ad549fafe5b5fd017ae4d19ac68c1134a..147eff9d42a4da316c8a4a6785c501bb4bad60d7 100644 (file)
@@ -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]} ]";
 
index 495614faa8478fec388c10b5eaa0449839b96670..05dfecbf8a4dcbf94363e6626bfc469fd544b7f0 100755 (executable)
@@ -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]} ]";