https/path

This commit is contained in:
Marc Beninca 2024-09-07 13:13:55 +02:00
parent 040b1f03e4
commit 2b0107035b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1004,7 +1004,7 @@ spcd_f_pm_clean() {
esac esac
} }
spcd_f_pm_https() { spcd_f_pm_https_path() {
case "${SPCD_PM}" in case "${SPCD_PM}" in
"${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;; "${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;;
"${SPCD_PM_APT}") echo "/etc/apt/apt.conf.d/https" ;; "${SPCD_PM_APT}") echo "/etc/apt/apt.conf.d/https" ;;
@ -1260,7 +1260,7 @@ spcd_step__packages_trust_https() {
spcd_step "Trust HTTPS" spcd_step "Trust HTTPS"
local path text local path text
if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then if [ -n "${SPCD_CA_1}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then
path="$(spcd_f_pm_https)" path="$(spcd_f_pm_https_path)"
if [ -n "${path}" ]; then if [ -n "${path}" ]; then
spcd_os_mkdir "$(dirname "${path}")" spcd_os_mkdir "$(dirname "${path}")"
case "${SPCD_PM}" in case "${SPCD_PM}" in
@ -1361,7 +1361,7 @@ spcd_step__ca_update_certificates() {
spcd_step__packages_verify_https() { spcd_step__packages_verify_https() {
spcd_step "Verify HTTPS" spcd_step "Verify HTTPS"
local path local path
path="$(spcd_f_pm_https)" path="$(spcd_f_pm_https_path)"
if [ -n "${path}" ]; then if [ -n "${path}" ]; then
spcd_os_rm "${path}" spcd_os_rm "${path}"
fi fi