Skip to content

Commit

Permalink
* add support for chrome-114
Browse files Browse the repository at this point in the history
* introduce environment variable CHROME_DISABLE_GPG_CHECK to disable
gpgchecke when installing chrome
  • Loading branch information
ichylinux committed May 31, 2023
1 parent 2c7a713 commit 5a15205
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/itamae/plugin/recipe/selenium/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
owner 'root'
group 'root'
mode '644'
variables disable_gpg_check: ['1', 'yes', 'true'].include?(ENV['CHROME_DISABLE_GPG_CHECK'].to_s.downcase)
end

if ENV['CHROME_VERSION'].to_s.empty?
Expand All @@ -18,5 +19,5 @@

execute 'yum update -y google-chrome-stable' do
user 'root'
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (110|111|112|113)\.'"
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (110|111|112|113|114)\.'"
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgcheck=<%= @disable_gpg_check ? 0 : 1 %>
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
2 changes: 1 addition & 1 deletion lib/itamae/plugin/recipe/selenium/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Itamae
module Plugin
module Recipe
module Selenium
VERSION = '0.3.9'
VERSION = '0.4.0'
end
end
end
Expand Down

0 comments on commit 5a15205

Please sign in to comment.