lib/itamae/plugin/recipe/daddy/wkhtmltopdf/install.rb in itamae-plugin-recipe-daddy-0.1.9 vs lib/itamae/plugin/recipe/daddy/wkhtmltopdf/install.rb in itamae-plugin-recipe-daddy-0.1.10
- old
+ new
@@ -17,10 +17,11 @@
cwd '/var/daddy/tmp'
user 'root'
command <<-EOF
yum install -y wkhtmltox-#{version}.centos6.x86_64.rpm
EOF
+ not_if "yum info wkhtmltox | grep Version | grep #{version}"
end
when /rhel-7\.(.*?)/
execute "download wkhtmltox-#{version}" do
cwd '/var/daddy/tmp'
command <<-EOF
@@ -34,7 +35,8 @@
cwd '/var/daddy/tmp'
user 'root'
command <<-EOF
yum install -y wkhtmltox-#{version}.centos7.x86_64.rpm
EOF
+ not_if "yum info wkhtmltox | grep Version | grep #{version.split('-').first}"
end
end