Skip to content

Commit

Permalink
#557: enable_rpm.pp, adjust 'awk' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Dec 8, 2017
1 parent 7fcdcb7 commit a8e5b27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
command => "awk '/\[remi-php${version}\]/,/\[remi-test\]/ { if (/enabled=0/) \$0 = \"enabled=1\" }1' ${php_repo} > ${temp_file}",
notify => Exec["enable-php-2"],
path => '/usr/bin',
onlyif => "awk '/\[remi-php${version}\]/,/\[remi-test\]/ { if (/enabled=0/) exit 0 }1' ${php_repo} > ${temp_file}",
onlyif => "awk 'index(\$0, \"[remi-php56]\") {f=1} index(\$0, \"[remi-test]\") {exit 0} f && /enabled=1/ {exit 1}' ${php_repo}",
}
exec {'enable-php-2':
command => "mv ${working_dir}/remi.tmp /etc/yum.repos.d/remi.repo",
Expand Down

0 comments on commit a8e5b27

Please sign in to comment.