Commit c73cebf8 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

fix: exit install ca certs on non root image

parent 91db94df
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -94,6 +94,12 @@ stages:
      return
    fi

    if [[ ! "$(whoami)" == "root" ]]
    then
      log_warn "can't install custom CA certificates (not root user); make sure to handle it"
      return
    fi

    # List of typical bundles
    bundles="/etc/ssl/certs/ca-certificates.crt"                            # Debian/Ubuntu/Gentoo etc.
    bundles="${bundles} /etc/ssl/cert.pem"                                  # Alpine Linux