]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Minor changes
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 21 Nov 2019 16:34:30 +0000 (17:34 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 21 Nov 2019 16:34:30 +0000 (17:34 +0100)
postinstall-scripts/update-all-packages

index 69a9b1520e5cf9b3b9590a7aa256ade779e83e08..6ee5479964c4bdf770f97476605c5e1a8aaee36a 100755 (executable)
@@ -250,6 +250,7 @@ empty_repo_file() {
 
     local orig_repo="${repo_dir}/${stem}.repo"
     local bak_repo="${old_repo_dir}/${stem}.${i}.repo"
+    debug "Checking '${CYAN}${orig_repo}${NORMAL}' ..."
 
     local verbose_opt=""
     if [[ "${VERBOSE}" == "y" ]] ; then
@@ -314,7 +315,7 @@ do_el_upgrade() {
     local awk_script=''
     local cleaned_old_repo="n"
 
-    empty_oracle_repo_files
+    empty_oracle_repo_files || true
 
     if grep '^ip_resolve *= *4' /etc/yum.conf >/dev/null ; then
         debug "Usage of IPv4 already configured"
@@ -364,7 +365,7 @@ ok==1 {print "ip_resolve=4"; ok=0}
     debug "Executing: ${cmd}"
     eval ${cmd}
 
-    empty_oracle_repo_files
+    empty_oracle_repo_files || true
 
     echo
     info "Cleaning again ..."