Skip to content

Commit 0e5be84

Browse files
authored
Fix config file missing domain if hostname fails (#2609)
1 parent 0536468 commit 0e5be84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/authelia-install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ JWT_SECRET=$(openssl rand -hex 64)
3232
SESSION_SECRET=$(openssl rand -hex 64)
3333
STORAGE_KEY=$(openssl rand -hex 64)
3434
DOMAIN=$(hostname -d)
35-
35+
if [ -z "$DOMAIN" ]; then
36+
DOMAIN=$(hostname)
37+
fi
3638
cat <<EOF >/etc/authelia/users.yml
3739
users:
3840
authelia:

0 commit comments

Comments
 (0)