mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 09:57:17 +01:00
moved config validation into boostrap
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user