mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
@@ -46,7 +46,13 @@ fi
|
||||
# load old or init raspiblitz config
|
||||
source ${configFile}
|
||||
|
||||
# check if config files contains basic: hostname
|
||||
# if hostname missing - set default
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
/home/admin/config.scripts/blitz.conf.sh set hostname "raspiblitz"
|
||||
source ${configFile}
|
||||
fi
|
||||
|
||||
# re-check if config files contains hostname value
|
||||
if [ ${#hostname} -eq 0 ]; then
|
||||
/home/admin/config.scripts/blitz.error.sh _provision.update.sh "missing-hostname" "${setupFile} or ${configFile} contains no hostname" "" ${logFile}
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user