Make user configuration for onlyoffice sequence
This commit is contained in:
6
seqs/onlyoffice.cfg.example
Normal file
6
seqs/onlyoffice.cfg.example
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
onlyOfficePort="8026"
|
||||
dockerDns1="80.241.218.68" # https://dismail.de/info.html#dns
|
||||
dockerDns2="46.182.19.48" # https://digitalcourage.de/support/zensurfreier-dns-server
|
||||
dockerDefaultConf="/etc/default/docker"
|
@@ -12,11 +12,27 @@ dockerDeps="apt-transport-https ca-certificates curl gnupg-agent software-proper
|
||||
dockerGpgKeyUrl="https://download.docker.com/linux/ubuntu/gpg"
|
||||
dockerRepoUrl="https://download.docker.com/linux/ubuntu"
|
||||
dockerPackages="docker-ce docker-ce-cli containerd.io"
|
||||
dockerDns1="80.241.218.68" # https://dismail.de/info.html#dns
|
||||
dockerDns2="46.182.19.48" # https://digitalcourage.de/support/zensurfreier-dns-server
|
||||
# Entry in config value $dockerDefaultConf
|
||||
dockerDnsEntry="DOCKER_OPTS=\"--dns $dockerDns1 --dns $dockerDns2\""
|
||||
dockerDefaultConf="/etc/default/docker"
|
||||
onlyOfficePort="8026"
|
||||
|
||||
# Get script working directory
|
||||
# (when called from a different directory)
|
||||
WDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
|
||||
CONFIG_FILE="$WDIR/${toolName}.cfg"
|
||||
CONFIG_FILE_DEFAULT="${CONFIG_FILE}.example"
|
||||
|
||||
step_config() {
|
||||
if [ ! -s "$CONFIG_FILE" ] && [ ! -s "$CONFIG_FILE_DEFAULT" ] ; then
|
||||
echoerr " [E] No configuration \"$CONFIG_FILE_DEFAULT\" or \"$CONFIG_FILE\" found"
|
||||
exit 1;
|
||||
fi
|
||||
if [ -s "$CONFIG_FILE" ] ; then
|
||||
. "$CONFIG_FILE"
|
||||
else
|
||||
echoerr " [W] User configuration \"$CONFIG_FILE\" not found. Using \"$CONFIG_FILE_DEFAULT\""
|
||||
. "$CONFIG_FILE_DEFAULT"
|
||||
fi
|
||||
}
|
||||
|
||||
step_1_info() { echo "Install docker dependencies"; }
|
||||
step_1_alias() { ALIAS="install"; }
|
||||
|
Reference in New Issue
Block a user