Skip to content

Commit 2f0e9ff

Browse files
fix: podman-compose install for zypper (#1168)
* fix: podman-compose install for zypper * fix: quote * fix: syntax issue * Simplify zypper installation process for podman-compose Removed unnecessary OS release checks for zypper installation. * Remove checkDistro function call This is already done and /etc/os-release is sourced from checkEnv --------- Co-authored-by: Chris Titus <contact@christitus.com>
1 parent 0e26ba2 commit 2f0e9ff

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

core/tabs/applications-setup/podman-compose-setup.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ installPodmanCompose() {
66
if ! command_exists podman-compose; then
77
printf "%b\n" "${YELLOW}Installing Podman Compose...${RC}"
88
case "$PACKAGER" in
9-
apt-get|nala|zypper|dnf)
9+
apt-get|nala|dnf)
1010
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
1111
;;
1212
pacman)
@@ -18,6 +18,18 @@ installPodmanCompose() {
1818
xbps-install)
1919
"$ESCALATION_TOOL" "$PACKAGER" -Sy podman-compose
2020
;;
21+
zypper)
22+
if [ "$ID" = "opensuse-leap" ]; then
23+
"$ESCALATION_TOOL" "$PACKAGER" addrepo "https://download.opensuse.org/repositories/devel:languages:python/$VERSION_ID/devel:languages:python.repo"
24+
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys refresh
25+
"$ESCALATION_TOOL" "$PACKAGER" --gpg-auto-import-keys install -y podman-compose
26+
elif [ "$ID" = "opensuse-tumbleweed" ]; then
27+
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
28+
else
29+
printf "%b\n" "${RED}Unsupported openSUSE distro: ${ID}${RC}"
30+
exit 1
31+
fi
32+
;;
2133
*)
2234
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}"
2335
exit 1

0 commit comments

Comments
 (0)