conf/text
Some checks failed
/ job (push) Failing after 39s

This commit is contained in:
Marc Beninca 2024-05-03 23:19:30 +02:00
parent 7be21f53dd
commit e5d17cd0f0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

41
cd.sh
View file

@ -71,6 +71,14 @@ cd_set_environment_variables () {
CD_CMD_UPGRADE="dnf upgrade --assumeyes" CD_CMD_UPGRADE="dnf upgrade --assumeyes"
CD_PKG_PKG="" CD_PKG_PKG=""
CD_PM_CONF_PATH="/etc/dnf/dnf.conf" CD_PM_CONF_PATH="/etc/dnf/dnf.conf"
CD_PM_CONF_TEXT="\
[main]
best=True
clean_requirements_on_remove=True
gpgcheck=1
installonly_limit=3
skip_if_unavailable=False
"
CD_PM_HTTPS_PATH="/etc/dnf/dnf.conf.d/https.conf" CD_PM_HTTPS_PATH="/etc/dnf/dnf.conf.d/https.conf"
CD_PM_HTTPS_TEXT="sslverify=False" CD_PM_HTTPS_TEXT="sslverify=False"
CD_PYTHON_COMMAND="python3.11" CD_PYTHON_COMMAND="python3.11"
@ -93,6 +101,13 @@ cd_set_environment_variables () {
CD_CMD_UPGRADE="apt-get upgrade --assume-yes" CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
CD_PKG_PKG="apt-utils" CD_PKG_PKG="apt-utils"
CD_PM_CONF_PATH="/etc/apt/apt.conf.d/apt.conf" CD_PM_CONF_PATH="/etc/apt/apt.conf.d/apt.conf"
CD_PM_CONF_TEXT="\
Acquire::Check-Valid-Until True;
APT::Get::Show-Versions True;
APT::Install-Recommends False;
APT::Install-Suggests False;
Dir::Etc::SourceParts \"\";
"
CD_PM_HTTPS_PATH="/etc/apt/apt.conf.d/https" CD_PM_HTTPS_PATH="/etc/apt/apt.conf.d/https"
CD_PM_HTTPS_TEXT="Acquire::https::Verify-Peer False;" CD_PM_HTTPS_TEXT="Acquire::https::Verify-Peer False;"
CD_PYTHON_COMMAND="python3" CD_PYTHON_COMMAND="python3"
@ -178,33 +193,13 @@ deb ${CD_OS_REPO}-security ${CD_OS_VERSION}-security main
esac esac
} }
# agnostic steps
cd_set_packages_configuration () { cd_set_packages_configuration () {
cd_step "Set packages configuration" cd_step "Set packages configuration"
case "${CD_OS_ID}" in cd_write "${CD_PM_CONF_PATH}" "${CD_PM_CONF_TEXT}"
"${CD_OS_ALMA}")
cd_write "${CD_PM_CONF_PATH}" "\
[main]
best=True
clean_requirements_on_remove=True
gpgcheck=1
installonly_limit=3
skip_if_unavailable=False
"
;;
"${CD_OS_DEBIAN}")
cd_write "${CD_PM_CONF_PATH}" "\
Acquire::Check-Valid-Until True;
APT::Get::Show-Versions True;
APT::Install-Recommends False;
APT::Install-Suggests False;
Dir::Etc::SourceParts \"\";
"
;;
esac
} }
# agnostic steps
cd_set_https_verification_off () { cd_set_https_verification_off () {
if [ "${CD_CA}" -o "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] ; then if [ "${CD_CA}" -o "${CD_OS_ID}" = "${CD_OS_DEBIAN}" ] ; then
cd_step "Set HTTPS verification off" cd_step "Set HTTPS verification off"