initial commit of file from CVS for smeserver-collabora on Sat Sep 7 20:14:51 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:14:51 +10:00
parent b0491cf203
commit 3baf8e4745
22 changed files with 667 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
#!/bin/bash
# Disable ssl
coolconfig set ssl.enable false
coolconfig set ssl.termination true
coolconfig set net.listen loopback
coolconfig set net.proto IPv4
#Generate a list of hosts that can access to the wopi storage
#Server FQDN
AllowWopiHosts=`hostname`
#Nextcloud virtualhost
if [[ -n `/sbin/e-smith/config getprop nextcloud VirtualHost` ]];then AllowWopiHosts+="|`/sbin/e-smith/config getprop nextcloud VirtualHost`";fi
if [[ -n `/sbin/e-smith/config getprop nextcloud CloudDomain` ]];then AllowWopiHosts+="|`/sbin/e-smith/config getprop nextcloud CloudDomain`";fi
#Additional external host
if [[ -n `/sbin/e-smith/config getprop coolwsd AllowWopiHost` ]];then AllowWopiHosts+="|`/sbin/e-smith/config getprop coolwsd AllowWopiHost |sed -e 's/,/|/g' `";fi
coolconfig set storage.wopi.host "$AllowWopiHosts"
if [[ -n `/sbin/e-smith/config getprop coolwsd VirtualHost` ]]; then
#Configure smeserver-Nextcloud
if [[ -x "/usr/bin/occ" ]]; then
/usr/bin/occ app:install richdocuments
/usr/bin/occ config:app:set richdocuments wopi_url --value=https://`/sbin/e-smith/config getprop coolwsd VirtualHost`
/usr/bin/occ app:enable richdocuments
/usr/bin/occ config:system:set allow_local_remote_servers --value true --type bool
fi
fi