vm/menu/documentserver.sh
Daniel Hansson 6b1c7fee14
happy new year! (#1749)
* happy new year!

Signed-off-by: enoch85 <github@hanssonit.se>

* fix some comments and restore geoip database files

Signed-off-by: szaimen <szaimen@e.mail.de>

Co-authored-by: szaimen <szaimen@e.mail.de>
2021-01-01 15:34:25 +01:00

48 lines
1.6 KiB
Bash

#!/bin/bash
# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/
true
SCRIPT_NAME="Documentserver Menu"
# shellcheck source=lib.sh
source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh)
# Check for errors + debug code and abort if something isn't right
# 1 = ON
# 0 = OFF
DEBUG=0
debug_mode
# Must be root
root_check
choice=$(whiptail --title "$TITLE" --menu \
"Which Documentserver do you want to install?\n\nAutomatically configure and install the selected Documentserver.
$MENU_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"Collabora (Docker)" "(Online editing - Extra Subdomain required)" \
"Collabora (Integrated)" "(Online editing - No Subdomain required)" \
"OnlyOffice (Docker)" "(Online editing - Extra Subdomain required)" \
"OnlyOffice (Integrated)" "(Online editing - No Subdomain required)" 3>&1 1>&2 2>&3)
case "$choice" in
"Collabora (Docker)")
print_text_in_color "$ICyan" "Downloading the Collabora (Docker) script..."
run_script APP collabora_docker
;;
"Collabora (Integrated)")
print_text_in_color "$ICyan" "Downloading the Collabora (Integrated) script..."
run_script APP collabora_integrated
;;
"OnlyOffice (Docker)")
print_text_in_color "$ICyan" "Downloading the OnlyOffice (Docker) script..."
run_script APP onlyoffice_docker
;;
"OnlyOffice (Integrated)")
print_text_in_color "$ICyan" "Downloading the OnlyOffice (Integrated) script..."
run_script APP onlyoffice_integrated
;;
*)
;;
esac
exit