Fixed Exec conditions.
authorAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 01:15:44 +0000 (03:15 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 01:15:44 +0000 (03:15 +0200)
modules/desktop/manifests/init.pp

index 05555bd..ca57c09 100644 (file)
@@ -79,7 +79,7 @@ class desktop {
 
        exec { 'fix-desktop-leafpad':
                command => '/bin/sed -i "/^Name/ s/=.*/=Notes/;" /etc/skel/Desktop/leafpad.desktop',
-               onlyif => '/bin/grep -vq "^Name.*=Notes" /etc/skel/Desktop/leafpad.desktop',
+               unless => '/bin/grep -q "^Name=Notes" /etc/skel/Desktop/leafpad.desktop',
        }
 
        file { '/etc/skel/Desktop/galculator.desktop':
@@ -93,7 +93,7 @@ class desktop {
 
        exec { 'fix-desktop-galculator':
                command => '/bin/sed -i "/^Name/ s/=.*/=Calculator/;" /etc/skel/Desktop/galculator.desktop',
-               onlyif => '/bin/grep -vq "^Name.*=Calculator" /etc/skel/Desktop/galculator.desktop',
+               unless => '/bin/grep -q "^Name.*=Calculator" /etc/skel/Desktop/galculator.desktop',
        }
 
        file { '/etc/skel/Desktop/chromium-l10n.desktop':
@@ -115,7 +115,7 @@ class desktop {
 
        exec { 'fix-desktop-florence':
                command => '/bin/sed -i "/^Name/ s/=.*/=Keyboard/;" /etc/skel/Desktop/florence.desktop',
-               onlyif => '/bin/grep -vq "^Name.*=Keyboard" /etc/skel/Desktop/florence.desktop',
+               unless => '/bin/grep -q "^Name.*=Keyboard" /etc/skel/Desktop/florence.desktop',
        }
 
        file { '/etc/skel/Desktop/pcmanfm.desktop':
@@ -129,7 +129,7 @@ class desktop {
 
        exec { 'fix-desktop-pcmanfm':
                command => '/bin/sed -i "/^Name/ s/=.*/=Filemanager/;" /etc/skel/Desktop/pcmanfm.desktop',
-               onlyif => '/bin/grep -vq "^Name.*=Filemanager" /etc/skel/Desktop/pcmanfm.desktop',
+               unless => '/bin/grep -q "^Name.*=Filemanager" /etc/skel/Desktop/pcmanfm.desktop',
        }
 
        file { '/etc/skel/Desktop/iceweasel.desktop':
@@ -143,7 +143,7 @@ class desktop {
 
        exec { 'fix-desktop-iceweasel':
                command => '/bin/sed -i "/^Name/ s/=.*/=Webbrowser/;" /etc/skel/Desktop/iceweasel.desktop',
-               onlyif => '/bin/grep -vq "^Name.*=Webbrowser" /etc/skel/Desktop/iceweasel.desktop',
+               unless => '/bin/grep -q "^Name.*=Webbrowser" /etc/skel/Desktop/iceweasel.desktop',
        }