From 0e5be846be8a1394107cef87a2ea3258b70b927c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:39:35 +0100 Subject: [PATCH] Fix config file missing domain if hostname fails (#2609) --- install/authelia-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/authelia-install.sh b/install/authelia-install.sh index 15257af6..514894e2 100644 --- a/install/authelia-install.sh +++ b/install/authelia-install.sh @@ -32,7 +32,9 @@ JWT_SECRET=$(openssl rand -hex 64) SESSION_SECRET=$(openssl rand -hex 64) STORAGE_KEY=$(openssl rand -hex 64) DOMAIN=$(hostname -d) - +if [ -z "$DOMAIN" ]; then + DOMAIN=$(hostname) +fi cat </etc/authelia/users.yml users: authelia: