parent
1e1f281f54
commit
bfe94ce1cb
1 changed files with 18 additions and 7 deletions
25
cd.sh
25
cd.sh
|
@ -106,19 +106,30 @@ function cd_update_packages_catalog {
|
|||
esac
|
||||
}
|
||||
|
||||
function cd_install_ca {
|
||||
cd_step "${FUNCNAME}"
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian') apt-get install --yes 'ca-certificates' || exit ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function cd_set_https_verification_on {
|
||||
cd_step "${FUNCNAME}"
|
||||
case "${CD_OS_NAME}" in
|
||||
'debian') rm '/etc/apt/apt.conf.d/https' ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function cd_main {
|
||||
cd_set_dns_resolving
|
||||
cd_set_packages_repositories
|
||||
cd_set_packages_configuration
|
||||
cd_set_https_verification_off
|
||||
cd_update_packages_catalog
|
||||
|
||||
cd_step "install CA certificates package"
|
||||
apt-get install --yes 'ca-certificates' \
|
||||
|| exit
|
||||
cd_step "enable package verification"
|
||||
rm '/etc/apt/apt.conf.d/https' \
|
||||
|| exit
|
||||
cd_install_ca
|
||||
cd_set_https_verification_on
|
||||
|
||||
cd_step "update package catalog"
|
||||
apt-get update \
|
||||
|
|
Loading…
Reference in a new issue