1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Plugin lxc: change the plugin from "bash" to "sh"

No more bashisms were left.
This commit is contained in:
Lars Kruse 2019-08-12 01:39:30 +02:00
parent 6bb4719881
commit 55b881878c

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# -*- sh -*-
: << =cut
@ -94,7 +94,7 @@ cgrouppath=${cgrouppath:-}
# --- FUNCTIONS
function active_guests {
active_guests() {
local excludes="$1"
local guest_name
for guest_name in $(lxc-ls)
@ -109,7 +109,7 @@ function active_guests {
}
function get_lxc_cgroup_info {
get_lxc_cgroup_info() {
local guest_name="$1"
local field="$2"
# lxc3 (lxc < 3: may output some warnings if there is cruft in your config dir)
@ -117,7 +117,7 @@ function get_lxc_cgroup_info {
}
function lxc_netdev {
lxc_netdev() {
local guest_name="$1"
if [ -f "$lxcpath/$guest_name/config" ]; then