mv
This commit is contained in:
parent
2aff78913d
commit
56c1e88ded
1 changed files with 29 additions and 29 deletions
|
@ -1015,6 +1015,35 @@ spcd_f_pm_https_path() {
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_f_pm_https_trust() {
|
||||
spcd_step "Trust"
|
||||
local path text
|
||||
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
|
||||
path="$(spcd_f_pm_https_path)"
|
||||
if [ -n "${path}" ]; then
|
||||
spcd_os_mkdir "$(dirname "${path}")"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") text="\
|
||||
--no-verify
|
||||
" ;;
|
||||
"${SPCD_PM_APT}") text="\
|
||||
Acquire::https::Verify-Peer False;
|
||||
" ;;
|
||||
"${SPCD_PM_DNF}") text="\
|
||||
sslverify=False
|
||||
" ;;
|
||||
"${SPCD_PM_PACMAN}") text="\
|
||||
SSLVerify = No
|
||||
" ;;
|
||||
"${SPCD_PM_ZYPPER}") ;;
|
||||
*) ;;
|
||||
esac
|
||||
[ -n "${text}" ] &&
|
||||
spcd_os_write "${path}" "${text}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_f_pm_https_verify() {
|
||||
spcd_step "Verify"
|
||||
local path
|
||||
|
@ -1265,35 +1294,6 @@ Dir::Etc::SourceParts \"\";
|
|||
esac
|
||||
}
|
||||
|
||||
spcd_f_pm_https_trust() {
|
||||
spcd_step "Trust"
|
||||
local path text
|
||||
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
|
||||
path="$(spcd_f_pm_https_path)"
|
||||
if [ -n "${path}" ]; then
|
||||
spcd_os_mkdir "$(dirname "${path}")"
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") text="\
|
||||
--no-verify
|
||||
" ;;
|
||||
"${SPCD_PM_APT}") text="\
|
||||
Acquire::https::Verify-Peer False;
|
||||
" ;;
|
||||
"${SPCD_PM_DNF}") text="\
|
||||
sslverify=False
|
||||
" ;;
|
||||
"${SPCD_PM_PACMAN}") text="\
|
||||
SSLVerify = No
|
||||
" ;;
|
||||
"${SPCD_PM_ZYPPER}") ;;
|
||||
*) ;;
|
||||
esac
|
||||
[ -n "${text}" ] &&
|
||||
spcd_os_write "${path}" "${text}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_step__packages_install_tools() {
|
||||
spcd_step "Install tools"
|
||||
case "${SPCD_PM}" in
|
||||
|
|
Loading…
Reference in a new issue