Avoid overwrite prompts when unzipping
authorTom Hughes <tom@compton.nu>
Sun, 19 Jan 2020 17:53:33 +0000 (17:53 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 19 Jan 2020 17:53:33 +0000 (17:53 +0000)
cookbooks/civicrm/recipes/default.rb

index cadc73212cff4aaeecff09f7a0cac7357f8c81cb..6e492e224c43ebe5ad002f68be7f467e1e065e5b 100644 (file)
@@ -91,7 +91,7 @@ end
 
 execute "#{cache_dir}/civicrm-#{civicrm_version}-wordpress.zip" do
   action :nothing
-  command "unzip -qq #{cache_dir}/civicrm-#{civicrm_version}-wordpress.zip"
+  command "unzip -o -qq #{cache_dir}/civicrm-#{civicrm_version}-wordpress.zip"
   cwd "/opt/civicrm-#{civicrm_version}"
   user "wordpress"
   group "wordpress"