Fix Hostname in Init script

This commit is contained in:
Christer Warén
2025-12-07 17:34:11 +02:00
parent b544f7af1e
commit 655c86e508
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ wx-init(){
if [[ ! -z ${args['hostname']} && ${#args['hostname']} -gt 5 ]]
then
HOSTNAME="${args['hostname']}.$DEVICE_DOMAIN"
HOSTNAME="${args['hostname']}.devices.$DOMAIN"
elif [[ $(hostname -d) ]]
then
HOSTNAME=$(hostname --fqdn)

View File

@@ -4,7 +4,7 @@ wx-init(){
if [[ ! -z ${args['hostname']} && ${#args['hostname']} -gt 5 ]]
then
HOSTNAME="${args['hostname']}.$DEVICE_DOMAIN"
HOSTNAME="${args['hostname']}.devices.$DOMAIN"
elif [[ $(hostname -d) ]]
then
HOSTNAME=$(hostname --fqdn)