Skip to content

Commit 1eb651b

Browse files
committed
add debug output
1 parent 52ee878 commit 1eb651b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

bin/nextcloud-domain.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
source /usr/local/etc/library.sh
4-
4+
set -x
55
# wait until user decrypts the instance first
66
while :; do
77
needs_decrypt || break
@@ -31,6 +31,8 @@ while :; do
3131
sleep 3
3232
continue
3333
}
34+
# TODO: REmove debug output
35+
echo "found domain: $nc_domain"
3436
# Fix the situation where junk was introduced in the config by mistake
3537
# because Redis was not yet ready to be used even if it was up
3638
[[ "${nc_domain}" =~ "RedisException" ]] && nc_domain="$(hostname)"

etc/library.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function set-nc-domain()
146146
fi
147147
if [[ "${domain}" == "" ]] || is_an_ip "${domain}"; then
148148
echo "warning: No domain found. Defaulting to '$(hostname)'"
149+
echo "cli.overwrite.url was: $(ncc config:system:get overwrite.cli.url)"
149150
domain="$(hostname)"
150151
fi
151152
local proto

0 commit comments

Comments
 (0)