mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 00:59:23 +01:00
parent
6a33cbc6dc
commit
b402ee4c5f
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue