only install ca-certificates on opensuse if it isn't already installed

This commit is contained in:
Daniel Wallace 2017-12-14 15:30:07 -07:00
parent ce278f2104
commit 790d2ab13d
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -5515,7 +5515,7 @@ install_opensuse_stable_deps() {
}
install_opensuse_git_deps() {
if [ "$_INSECURE_DL" -eq $BS_FALSE ] && [ "${_SALT_REPO_URL%%://*}" = "https" ]; then
if [ "$_INSECURE_DL" -eq $BS_FALSE ] && [ "${_SALT_REPO_URL%%://*}" = "https" ] && ! __check_command_exists update-ca-certificates; then
__zypper_install ca-certificates || return 1
fi