Skip to content

Commit 6ca3383

Browse files
authored
GHI-6997 - Changed the EY_ENABLE_UNATTENDED_UPGRADES varibale default value for the Unattended Upgrades cookbook (#237)
1 parent 941669b commit 6ca3383

File tree

1 file changed

+2
-1
lines changed
  • cookbooks/ey-unattended-upgrades/recipes

1 file changed

+2
-1
lines changed

cookbooks/ey-unattended-upgrades/recipes/default.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
unattended_flag = fetch_env_var(node, "EY_ENABLE_UNATTENDED_UPGRADES") ? 1 : 0
1+
unattended_flag_string = fetch_env_var(node, "EY_ENABLE_UNATTENDED_UPGRADES", "false")
2+
unattended_flag = unattended_flag_string.downcase == "true" || unattended_flag_string == "1" ? 1 : 0
23

34
template "/etc/apt/apt.conf.d/20auto-upgrades" do
45
mode "0644"

0 commit comments

Comments
 (0)