Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 5fb1be4

Browse files
authored
Add scripts for Collabora Online (#3648)
1 parent 86a5c8c commit 5fb1be4

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

ct/collabora.sh

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
3+
# Copyright (c) 2021-2024 tteck
4+
# Author: tteck (tteckster)
5+
# Co-Author: remz1337
6+
# License: MIT
7+
# https://github.com/tteck/Proxmox/raw/main/LICENSE
8+
9+
function header_info {
10+
clear
11+
cat <<"EOF"
12+
______ ____ __
13+
/ ____/___ / / /___ _/ /_ ____ _________ _
14+
/ / / __ \/ / / __ `/ __ \/ __ \/ ___/ __ `/
15+
/ /___/ /_/ / / / /_/ / /_/ / /_/ / / / /_/ /
16+
\____/\____/_/_/\__,_/_.___/\____/_/ \__,_/
17+
18+
EOF
19+
}
20+
header_info
21+
echo -e "Loading..."
22+
APP="Collabora"
23+
var_disk="12"
24+
var_cpu="1"
25+
var_ram="1024"
26+
var_os="debian"
27+
var_version="12"
28+
variables
29+
color
30+
catch_errors
31+
32+
function default_settings() {
33+
CT_TYPE="1"
34+
PW=""
35+
CT_ID=$NEXTID
36+
HN=$NSAPP
37+
DISK_SIZE="$var_disk"
38+
CORE_COUNT="$var_cpu"
39+
RAM_SIZE="$var_ram"
40+
BRG="vmbr0"
41+
NET="dhcp"
42+
GATE=""
43+
APT_CACHER=""
44+
APT_CACHER_IP=""
45+
DISABLEIP6="no"
46+
MTU=""
47+
SD=""
48+
NS=""
49+
MAC=""
50+
VLAN=""
51+
SSH="no"
52+
VERB="no"
53+
echo_default
54+
}
55+
56+
function update_script() {
57+
header_info
58+
if [[ ! -f /lib/systemd/system/coolwsd.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
59+
msg_info "Updating ${APP} LXC"
60+
apt-get update &>/dev/null
61+
apt-get -y upgrade &>/dev/null
62+
msg_ok "Updated ${APP} LXC"
63+
exit
64+
}
65+
66+
start
67+
build_container
68+
description
69+
70+
msg_ok "Completed Successfully!\n"
71+
echo -e "${APP} needs to be behind a proxy (Nginx Proxy Manager)."

install/collabora-install.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2024 tteck
4+
# Author: tteck (tteckster)
5+
# Co-Author: remz1337
6+
# License: MIT
7+
# https://github.com/tteck/Proxmox/raw/main/LICENSE
8+
9+
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
10+
color
11+
verb_ip6
12+
catch_errors
13+
setting_up_container
14+
network_check
15+
update_os
16+
17+
msg_info "Installing Dependencies"
18+
$STD apt-get install -y curl
19+
$STD apt-get install -y sudo
20+
$STD apt-get install -y mc
21+
msg_ok "Installed Dependencies"
22+
23+
msg_info "Installing Collabora Online"
24+
wget -q -O /usr/share/keyrings/collaboraonline-release-keyring.gpg https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
25+
cat <<EOF >/etc/apt/sources.list.d/collaboraonline.sources
26+
Types: deb
27+
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb
28+
Suites: ./
29+
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg
30+
EOF
31+
$STD apt update
32+
$STD apt install -y coolwsd code-brand collaboraoffice*
33+
sed -i 's|<enable type="bool" desc="Controls whether SSL encryption between coolwsd and the network is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="true">true</enable>|<enable type="bool" desc="Controls whether SSL encryption between coolwsd and the network is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="true">false</enable>|g' /etc/coolwsd/coolwsd.xml
34+
sed -i 's|<termination desc="Connection via proxy where coolwsd acts as working via https, but actually uses http." type="bool" default="true">false</termination>|<termination desc="Connection via proxy where coolwsd acts as working via https, but actually uses http." type="bool" default="true">true</termination>|g' /etc/coolwsd/coolwsd.xml
35+
systemctl restart coolwsd
36+
msg_ok "Installed Collabora Online"
37+
38+
motd_ssh
39+
customize
40+
41+
msg_info "Cleaning up"
42+
$STD apt-get -y autoremove
43+
$STD apt-get -y autoclean
44+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)