From 865e9cbbb8ac5543c3dc1dc3a1771de02bc53a30 Mon Sep 17 00:00:00 2001 From: Steve Buzonas Date: Fri, 9 May 2014 01:50:32 -0400 Subject: [PATCH] move freeze into apt packages loop to allow for removing nginx-common from package list --- recipes/default.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index 671fc43..f0ca195 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -15,9 +15,7 @@ options '--force-yes -o Dpkg::Options::="--force-confold"' only_if "[ $(dpkg -l #{nginx_package} 2>&1 | grep #{node[:nginx][:version]}.* | grep -c '^h[ic] ') = 0 ]" end -end -%w[nginx nginx-common nginx-full].each do |nginx_package| bash "freeze #{nginx_package}" do code "echo #{nginx_package} hold | dpkg --set-selections" only_if "[ $(dpkg --get-selections | grep -c '#{nginx_package}\W*hold') = 0 ]"