mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +02:00
@@ -46,7 +46,13 @@ fi
|
|||||||
# load old or init raspiblitz config
|
# load old or init raspiblitz config
|
||||||
source ${configFile}
|
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
|
if [ ${#hostname} -eq 0 ]; then
|
||||||
/home/admin/config.scripts/blitz.error.sh _provision.update.sh "missing-hostname" "${setupFile} or ${configFile} contains no hostname" "" ${logFile}
|
/home/admin/config.scripts/blitz.error.sh _provision.update.sh "missing-hostname" "${setupFile} or ${configFile} contains no hostname" "" ${logFile}
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user