This commit is contained in:
Marc Beninca 2024-05-03 20:00:28 +02:00
parent 9e83c7de5f
commit 725ad1acd1
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 19 additions and 20 deletions

34
cd.sh
View file

@ -178,21 +178,20 @@ Dir::Etc::SourceParts \"\";
} }
cd_set_https_verification_off () { cd_set_https_verification_off () {
if [ "${CD_CA}" ] ; then [ "${CD_CA}" ] || [ "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] || exit
cd_step "Set HTTPS verification off" cd_step "Set HTTPS verification off"
case "${CD_OS_ID}" in case "${CD_OS_ID}" in
"${CD_OS_DEBIAN}") "${CD_OS_DEBIAN}")
cd_write "/etc/apt/apt.conf.d/https" "\ cd_write "/etc/apt/apt.conf.d/https" "\
Acquire::https::Verify-Peer False; Acquire::https::Verify-Peer False;
" "
;; ;;
"${CD_OS_ALMA}") "${CD_OS_ALMA}")
cd_write "/etc/dnf/dnf.conf.d/https.conf" "\ cd_write "/etc/dnf/dnf.conf.d/https.conf" "\
sslverify=False sslverify=False
" "
;; ;;
esac esac
fi
} }
cd_update_packages_catalog () { cd_update_packages_catalog () {
@ -239,13 +238,12 @@ cd_update_ca_certificates () {
} }
cd_set_https_verification_on () { cd_set_https_verification_on () {
if [ "${CD_CA}" ] ; then [ "${CD_CA}" ] || [ "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] || exit
cd_step "Set HTTPS verification on" cd_step "Set HTTPS verification on"
case "${CD_OS_ID}" in case "${CD_OS_ID}" in
"${CD_OS_DEBIAN}") cd_rm "/etc/apt/apt.conf.d/https" ;; "${CD_OS_DEBIAN}") cd_rm "/etc/apt/apt.conf.d/https" ;;
"${CD_OS_ALMA}") cd_rm "/etc/dnf/dnf.conf.d/https.conf" ;; "${CD_OS_ALMA}") cd_rm "/etc/dnf/dnf.conf.d/https.conf" ;;
esac esac
fi
} }
cd_upgrade_packages () { cd_upgrade_packages () {

View file

@ -29,8 +29,9 @@ from various CA, CI, OCI / OS.
## Tasks ## Tasks
* first list working directory
* handle cloning credentials * handle cloning credentials
* write Python bootstrap
* first list working directory
* integrate project repository cloning * integrate project repository cloning
* override repository and framework locations * override repository and framework locations
* write Python bootstrap