-
-
Notifications
You must be signed in to change notification settings - Fork 662
/
documentserver.sh
47 lines (41 loc) · 1.53 KB
/
documentserver.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# T&M Hansson IT AB © - 2024, https://www.hanssonit.se/
true
SCRIPT_NAME="Documentserver menu"
# shellcheck source=lib.sh
source /var/scripts/fetch_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 for online editing do you want to install?\n\nWe recomend Collabora with Docker. The subdomain could look like this:\noffice.your-nextcloud.tld\n\nAutomatically configure and install the selected Documentserver.
$MENU_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"Collabora (Docker)" "(Extra Subdomain required)" \
"Collabora (Integrated)" "(No Subdomain required)" \
"OnlyOffice (Docker)" "(Extra Subdomain required)" \
"OnlyOffice (Integrated)" "(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