Fix git bootstrap mode for CentOS

This commit is contained in:
Denys Havrysh 2017-04-24 11:44:43 +03:00
parent f0db6fd3b0
commit 7f9b88cb47

View file

@ -3732,9 +3732,7 @@ install_centos_stable_post() {
}
install_centos_git_deps() {
if [ $_DISABLE_REPOS -eq $BS_FALSE ]; then
__install_epel_repository || return 1
fi
install_centos_stable_deps || return 1
if [ "$_INSECURE_DL" -eq $BS_FALSE ] && [ "${_SALT_REPO_URL%%://*}" = "https" ]; then
if [ "$DISTRO_MAJOR_VERSION" -gt 5 ]; then
@ -3744,8 +3742,6 @@ install_centos_git_deps() {
fi
fi
install_centos_stable_deps || return 1
if ! __check_command_exists git; then
__yum_install_noinput git || return 1
fi