diff --git a/cdist/conf/type/__directory/explorer/group b/cdist/conf/type/__directory/explorer/group index 4da5b45d..e5be37da 100644 --- a/cdist/conf/type/__directory/explorer/group +++ b/cdist/conf/type/__directory/explorer/group @@ -22,8 +22,7 @@ # destination="/$__object_id" -# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX -os="$(uname -s | tr '[:upper:]' '[:lower:]')" +os=$("$__explorer/os") case "$os" in "freebsd") diff --git a/cdist/conf/type/__directory/explorer/mode b/cdist/conf/type/__directory/explorer/mode index 1d40c795..f75b282b 100644 --- a/cdist/conf/type/__directory/explorer/mode +++ b/cdist/conf/type/__directory/explorer/mode @@ -22,8 +22,7 @@ # destination="/$__object_id" -# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX -os="$(uname -s | tr '[:upper:]' '[:lower:]')" +os=$("$__explorer/os") case "$os" in "freebsd") diff --git a/cdist/conf/type/__directory/explorer/owner b/cdist/conf/type/__directory/explorer/owner index 452dc672..cebd199b 100644 --- a/cdist/conf/type/__directory/explorer/owner +++ b/cdist/conf/type/__directory/explorer/owner @@ -22,8 +22,7 @@ # destination="/$__object_id" -# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX -os="$(uname -s | tr '[:upper:]' '[:lower:]')" +os=$("$__explorer/os") case "$os" in "freebsd")