mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-23 22:32:52 +00:00
Fixes (#283)
* make readme of owncloud more clear * clarify setup.sh * make user23 an admin by default * remove hard depenency on reg * add completed message * set more attributes on startup Signed-off-by: Felix Bartels <felix@host-consultants.de> * use cn instead of uid * add config for owncloud phoenix ui and openid plugin * add override for experimental feature endpoint * import kweb-calendar.cfg * experimental endpoint is yes/no * grapi also needs the ability to run insecure * grapi needs to resolve the domain, therefore needs to be in the web network
This commit is contained in:
@@ -4,8 +4,7 @@ set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
if ! command -v reg > /dev/null; then
|
||||
echo "Please install reg in order to run this script."
|
||||
exit 1
|
||||
echo "Please install reg to list available tags. You can only press enter when being asked for a tag."
|
||||
fi
|
||||
|
||||
if [ ! -e ../.env ]; then
|
||||
@@ -33,7 +32,7 @@ random_string() {
|
||||
hexdump -n 16 -v -e '/1 "%02X"' /dev/urandom
|
||||
}
|
||||
|
||||
docker_tag_search () {
|
||||
docker_tag_search() {
|
||||
image="$1"
|
||||
results=$(reg tags "$image" 2> /dev/null)
|
||||
echo "$results" | xargs -n1 | sort --version-sort -ru
|
||||
@@ -63,7 +62,7 @@ selectWithDefault() {
|
||||
[[ -n $index ]] && printf %s "${@: index:1}"
|
||||
}
|
||||
|
||||
update_env_file () {
|
||||
update_env_file() {
|
||||
varname="$1"
|
||||
varvalue="$2"
|
||||
if ! grep -q "$varname" ../.env; then
|
||||
@@ -73,7 +72,7 @@ update_env_file () {
|
||||
fi
|
||||
}
|
||||
|
||||
tag_question () {
|
||||
tag_question() {
|
||||
containername="$1"
|
||||
value_default="$2"
|
||||
description="$3"
|
||||
@@ -94,6 +93,8 @@ update_env_file OWNCLOUD_ADMIN_USERNAME admin
|
||||
update_env_file OWNCLOUD_ADMIN_PASSWORD "$(random_string)"
|
||||
update_env_file MARIADB_ROOT_PASSWORD "$(random_string)"
|
||||
|
||||
echo "Setup complete"
|
||||
|
||||
if [ -e "$tmpfile" ]; then
|
||||
rm "$tmpfile"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user