mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-10 07:30:28 +00:00
Fix config file missing domain if hostname fails (#2609)
This commit is contained in:
parent
05364685af
commit
0e5be846be
@ -32,7 +32,9 @@ JWT_SECRET=$(openssl rand -hex 64)
|
|||||||
SESSION_SECRET=$(openssl rand -hex 64)
|
SESSION_SECRET=$(openssl rand -hex 64)
|
||||||
STORAGE_KEY=$(openssl rand -hex 64)
|
STORAGE_KEY=$(openssl rand -hex 64)
|
||||||
DOMAIN=$(hostname -d)
|
DOMAIN=$(hostname -d)
|
||||||
|
if [ -z "$DOMAIN" ]; then
|
||||||
|
DOMAIN=$(hostname)
|
||||||
|
fi
|
||||||
cat <<EOF >/etc/authelia/users.yml
|
cat <<EOF >/etc/authelia/users.yml
|
||||||
users:
|
users:
|
||||||
authelia:
|
authelia:
|
||||||
|
Loading…
Reference in New Issue
Block a user