mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-21 03:14:59 +01:00
29 lines
535 B
Bash
29 lines
535 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
# Function to install CUPS for printers
|
|
installCUPS() {
|
|
clear
|
|
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm cups
|
|
;;
|
|
apt-get | nala)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
|
|
;;
|
|
dnf)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installCUPS
|