From 0108ef7a7dbf1799e1c71372d05c484116f36f85 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 27 Aug 2024 11:59:38 +0200 Subject: [PATCH] spcd_https_path --- spcd/bootstrap.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 5d56ad3..a18ef69 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -785,6 +785,17 @@ spcd_clean_cache() { esac } +spcd_https_path() { + case "${SPCD_PM}" in + "${SPCD_PM_DNF}") echo "/etc/dnf/dnf.conf.d/https.conf" ;; + "${SPCD_PM_APK}") echo "/etc/apk/repositories.d/https" ;; + "${SPCD_PM_PACMAN}") echo "/etc/pacman.d/https.conf" ;; + "${SPCD_PM_APT}") echo "/etc/apt/apt.conf.d/https" ;; + "${SPCD_PM_ZYPPER}") ;; + *) ;; + esac +} + spcd_install_package() { case "${SPCD_PM}" in "${SPCD_PM_APK}") apk add "${1}" ;;