mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 14:30:11 +00:00
4d2c2d3ab7
* Separate the office suites and pdf suites * add --needed * move 2 scripts over to pdf-suites * fix hanging data entry * alphabetically sort entries * address carters concerns * fix compilation errors --------- Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
installOnlyOffice() {
|
|
if ! command_exists onlyoffice-desktopeditors; then
|
|
printf "%b\n" "${YELLOW}Installing Only Office..${RC}."
|
|
case "$PACKAGER" in
|
|
apt-get|nala)
|
|
curl -O https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y ./onlyoffice-desktopeditors_amd64.deb
|
|
;;
|
|
zypper|dnf)
|
|
. ./setup-flatpak.sh
|
|
flatpak install -y flathub org.onlyoffice.desktopeditors
|
|
;;
|
|
pacman)
|
|
"$AUR_HELPER" -S --needed --noconfirm onlyoffice
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Only Office is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAurHelper
|
|
installOnlyOffice |