diff options
author | mh <mh@immerda.ch> | 2010-01-15 09:46:31 +0100 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-09-02 18:15:24 -0400 |
commit | 9a70828ea0355a4cbbf5cbb91dfd2940a4cc1042 (patch) | |
tree | 367b90a9c4663c068e74b0c0b83c175b2eecefd7 | |
parent | b4ce2e8769aaee3e5c65f059a7056d956c6c3842 (diff) | |
download | puppet-common-9a70828ea0355a4cbbf5cbb91dfd2940a4cc1042.tar.gz puppet-common-9a70828ea0355a4cbbf5cbb91dfd2940a4cc1042.tar.bz2 |
set sed and grep relative
-rw-r--r-- | manifests/defines/line.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/defines/line.pp b/manifests/defines/line.pp index e5b7fd5..7ca3191 100644 --- a/manifests/defines/line.pp +++ b/manifests/defines/line.pp @@ -33,8 +33,8 @@ define line($file, $line, $ensure = 'present') { } absent: { $subst_line = regsubst($line,'(/|\.)','\\\1','G') - exec { "/bin/sed -i '/${subst_line}/d' '${file}'": - onlyif => "/bin/grep -qFx '${line}' '${file}'" + exec { "sed -i '/${subst_line}/d' '${file}'": + onlyif => "grep -qFx '${line}' '${file}'" } } } |