mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Update core/tabs/applications-setup/podman-compose-setup.sh
Co-authored-by: nyx <nnyyxxxx@protonmail.com>
This commit is contained in:
parent
be6cd65487
commit
9611dd3786
|
@ -2,31 +2,27 @@
|
||||||
|
|
||||||
. ../common-script.sh
|
. ../common-script.sh
|
||||||
|
|
||||||
install_podman_compose() {
|
installPodmanCompose() {
|
||||||
printf "%b\n" "${YELLOW}Installing Podman Compose...${RC}"
|
if ! command_exists podman-compose; then
|
||||||
case "$PACKAGER" in
|
printf "%b\n" "${YELLOW}Installing Podman Compose...${RC}"
|
||||||
apt-get|nala)
|
case "$PACKAGER" in
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
apt-get|nala)
|
||||||
;;
|
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
||||||
zypper)
|
;;
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install podman-compose
|
zypper)
|
||||||
;;
|
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install podman-compose
|
||||||
pacman)
|
;;
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm --needed podman-compose
|
pacman)
|
||||||
;;
|
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm --needed podman-compose
|
||||||
dnf)
|
;;
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
dnf)
|
||||||
;;
|
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
||||||
*)
|
;;
|
||||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
*)
|
||||||
exit 1
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||||
;;
|
exit 1
|
||||||
esac
|
;;
|
||||||
}
|
esac
|
||||||
|
|
||||||
install_components() {
|
|
||||||
if ! command_exists podman-compose || ! command_exists podman compose version; then
|
|
||||||
install_podman_compose
|
|
||||||
else
|
else
|
||||||
printf "%b\n" "${GREEN}Podman Compose is already installed.${RC}"
|
printf "%b\n" "${GREEN}Podman Compose is already installed.${RC}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user