mkdir,path
This commit is contained in:
parent
585e1d58e2
commit
a73bdd235f
1 changed files with 5 additions and 4 deletions
9
cd.sh
9
cd.sh
|
@ -69,7 +69,7 @@ cd_set_environment_variables () {
|
||||||
CD_CMD_CLEAN="dnf clean all"
|
CD_CMD_CLEAN="dnf clean all"
|
||||||
CD_CMD_UPDATE="dnf makecache"
|
CD_CMD_UPDATE="dnf makecache"
|
||||||
CD_CMD_UPGRADE="dnf upgrade --assumeyes"
|
CD_CMD_UPGRADE="dnf upgrade --assumeyes"
|
||||||
CD_FILE_HTTPS_NAME="/etc/dnf/dnf.conf.d/https.conf"
|
CD_FILE_HTTPS_PATH="/etc/dnf/dnf.conf.d/https.conf"
|
||||||
CD_FILE_HTTPS_TEXT="sslverify=False"
|
CD_FILE_HTTPS_TEXT="sslverify=False"
|
||||||
CD_PKG_PKG=""
|
CD_PKG_PKG=""
|
||||||
CD_PYTHON_COMMAND="python3.11"
|
CD_PYTHON_COMMAND="python3.11"
|
||||||
|
@ -88,7 +88,7 @@ cd_set_environment_variables () {
|
||||||
CD_CMD_CLEAN="apt-get clean"
|
CD_CMD_CLEAN="apt-get clean"
|
||||||
CD_CMD_UPDATE="apt-get update"
|
CD_CMD_UPDATE="apt-get update"
|
||||||
CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
|
CD_CMD_UPGRADE="apt-get upgrade --assume-yes"
|
||||||
CD_FILE_HTTPS_NAME="/etc/apt/apt.conf.d/https"
|
CD_FILE_HTTPS_PATH="/etc/apt/apt.conf.d/https"
|
||||||
CD_FILE_HTTPS_TEXT="Acquire::https::Verify-Peer False;"
|
CD_FILE_HTTPS_TEXT="Acquire::https::Verify-Peer False;"
|
||||||
CD_PKG_PKG="apt-utils"
|
CD_PKG_PKG="apt-utils"
|
||||||
CD_PYTHON_COMMAND="python3"
|
CD_PYTHON_COMMAND="python3"
|
||||||
|
@ -196,7 +196,8 @@ Dir::Etc::SourceParts \"\";
|
||||||
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"
|
||||||
cd_write "${CD_FILE_HTTPS_NAME}" "${CD_FILE_HTTPS_TEXT}"
|
cd_mkdir "$(dirname "${CD_FILE_HTTPS_PATH}")"
|
||||||
|
cd_write "${CD_FILE_HTTPS_PATH}" "${CD_FILE_HTTPS_TEXT}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,7 +238,7 @@ cd_update_ca_certificates () {
|
||||||
cd_set_https_verification_on () {
|
cd_set_https_verification_on () {
|
||||||
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 on"
|
cd_step "Set HTTPS verification on"
|
||||||
cd_rm "${CD_FILE_HTTPS_NAME}"
|
cd_rm "${CD_FILE_HTTPS_PATH}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue