Compare commits
2 commits
d594bb532e
...
998c5f2386
Author | SHA1 | Date | |
---|---|---|---|
998c5f2386 | |||
06d34057dc |
1 changed files with 22 additions and 8 deletions
30
cd.sh
30
cd.sh
|
@ -87,19 +87,33 @@ Dir::Etc::SourceParts \"\";
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cd_set_https_verification_off {
|
||||||
|
cd_step "${FUNCNAME}"
|
||||||
|
case "${CD_OS_NAME}" in
|
||||||
|
'debian')
|
||||||
|
cd_write '/etc/apt/apt.conf.d/https' "\
|
||||||
|
Acquire::https::Verify-Peer False;
|
||||||
|
"
|
||||||
|
;;
|
||||||
|
*) exit 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
function cd_update_packages_catalog {
|
||||||
|
cd_step "${FUNCNAME}"
|
||||||
|
case "${CD_OS_NAME}" in
|
||||||
|
'debian') apt-get update ;;
|
||||||
|
*) exit 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
function cd_main {
|
function cd_main {
|
||||||
cd_set_dns_resolving
|
cd_set_dns_resolving
|
||||||
cd_set_packages_repositories
|
cd_set_packages_repositories
|
||||||
cd_set_packages_configuration
|
cd_set_packages_configuration
|
||||||
|
cd_set_https_verification_off
|
||||||
|
cd_update_packages_catalog
|
||||||
|
|
||||||
cd_step "disable package verification"
|
|
||||||
echo -n "\
|
|
||||||
Acquire::https::Verify-Peer False;
|
|
||||||
" > '/etc/apt/apt.conf.d/https' \
|
|
||||||
|| exit
|
|
||||||
cd_step "update package catalog"
|
|
||||||
apt-get update \
|
|
||||||
|| exit
|
|
||||||
cd_step "install CA certificates package"
|
cd_step "install CA certificates package"
|
||||||
apt-get install --yes 'ca-certificates' \
|
apt-get install --yes 'ca-certificates' \
|
||||||
|| exit
|
|| exit
|
||||||
|
|
Loading…
Reference in a new issue