mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Fix config file missing domain if hostname fails (#2609)
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user