mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 06:24:26 +00:00
f2a1766289
* Added support for installing podman * removed llm comment * Added podman to userguide * Added support for install pythona and pip in case of missing. changed pip install to rootless install * changed installing podman-compose with pip to packagemanager * Update core/tabs/applications-setup/podman-setup.sh Only install Podman if it is not installed already. Co-authored-by: nyx <nnyyxxxx@protonmail.com> * Update core/tabs/applications-setup/podman-setup.sh Only install podman-compose if it is not installed already. Co-authored-by: nyx <nnyyxxxx@protonmail.com> * added podman-compose install option * split podman install into podman and podman-compose * Update core/tabs/applications-setup/podman-setup.sh Co-authored-by: nyx <nnyyxxxx@protonmail.com> * Update core/tabs/applications-setup/podman-setup.sh Co-authored-by: nyx <nnyyxxxx@protonmail.com> * Update core/tabs/applications-setup/podman-compose-setup.sh Co-authored-by: nyx <nnyyxxxx@protonmail.com> * Update core/tabs/applications-setup/podman-compose-setup.sh Co-authored-by: nyx <nnyyxxxx@protonmail.com> * Update core/tabs/applications-setup/podman-compose-setup.sh Removed redundant quotes Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com> * Update core/tabs/applications-setup/podman-setup.sh Removed redundant quotes Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com> --------- Co-authored-by: nyx <nnyyxxxx@protonmail.com> Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com> Co-authored-by: Chris Titus <contact@christitus.com>
34 lines
978 B
Bash
34 lines
978 B
Bash
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
installPodmanCompose() {
|
|
if ! command_exists podman-compose; then
|
|
printf "%b\n" "${YELLOW}Installing Podman Compose...${RC}"
|
|
case "$PACKAGER" in
|
|
apt-get|nala)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
|
;;
|
|
zypper)
|
|
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install podman-compose
|
|
;;
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm --needed podman-compose
|
|
;;
|
|
dnf)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y podman-compose
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Podman Compose is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installPodmanCompose
|