]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
update-alternatives is now in usr/bin
authorPeter Palfrader <peter@palfrader.org>
Fri, 7 Nov 2014 19:53:11 +0000 (20:53 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 7 Nov 2014 19:53:11 +0000 (20:53 +0100)
modules/site/manifests/alternative.pp

index 6abc909be0f47762f79728b553f4de28203de2fa..2853e11d9ce106541786d72cec5a1476d1216d60 100644 (file)
@@ -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} ]",
                        }
                }