From bdccdb17b1bb9be3e74bb63e91eac083deab144c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 7 Nov 2014 20:53:11 +0100 Subject: [PATCH] update-alternatives is now in usr/bin --- modules/site/manifests/alternative.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/site/manifests/alternative.pp b/modules/site/manifests/alternative.pp index 6abc909be..2853e11d9 100644 --- a/modules/site/manifests/alternative.pp +++ b/modules/site/manifests/alternative.pp @@ -1,12 +1,12 @@ define site::alternative ($linkto, $ensure = present) { case $ensure { present: { - exec { "/usr/sbin/update-alternatives --set ${name} ${linkto}": + exec { "/usr/bin/update-alternatives --set ${name} ${linkto}": unless => "[ $(update-alternatives --query ${name} | grep ^Value | awk '{print \$2}') = ${linkto} ]", } } absent: { - exec { "/usr/sbin/update-alternatives --remove ${name} ${linkto}": + exec { "/usr/bin/update-alternatives --remove ${name} ${linkto}": unless => "[ $(update-alternatives --query ${name} | grep ^Value | awk '{print \$2}') != ${linkto} ]", } } -- 2.20.1