moved config validation into boostrap

This commit is contained in:
rootzoll
2018-12-11 19:37:32 +01:00
parent fafcf82538
commit 2153f48411
3 changed files with 20 additions and 42 deletions

View File

@@ -27,27 +27,6 @@ fi
# load old or init raspiblitz config
source ${configFile}
# check if config files contains basic: version
if [ ${#raspiBlitzVersion} -eq 0 ]; then
echo "FAIL see ${logFile}"
echo "FAIL: missing raspiBlitzVersion in (${configFile})!" >> ${logFile}
exit 1
fi
# check if config files contains basic: network
if [ ${#network} -eq 0 ]; then
echo "FAIL see ${logFile}"
echo "FAIL: missing network in (${configFile})!" >> ${logFile}
exit 1
fi
# check if config files contains basic: chain
if [ ${#chain} -eq 0 ]; then
echo "FAIL see ${logFile}"
echo "FAIL: missing chain in (${configFile})!" >> ${logFile}
exit 1
fi
# check if config files contains basic: hostname
if [ ${#hostname} -eq 0 ]; then
echo "FAIL see ${logFile}"