Browse Source

check if version is available

dev
rootzoll 6 years ago
parent
commit
fafcf82538
  1. 7
      home.admin/_bootstrap.migration.sh
  2. 7
      home.admin/_bootstrap.provision.sh

7
home.admin/_bootstrap.migration.sh

@ -27,6 +27,13 @@ fi
# load old or init raspiblitz config # load old or init raspiblitz config
source ${configFile} 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 # check if config files contains basic: network
if [ ${#network} -eq 0 ]; then if [ ${#network} -eq 0 ]; then
echo "FAIL see ${logFile}" echo "FAIL see ${logFile}"

7
home.admin/_bootstrap.provision.sh

@ -26,6 +26,13 @@ if [ ${configExists} -eq 0 ]; then
exit 1 exit 1
fi fi
# 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 # check if config files contains basic: network
if [ ${#network} -eq 0 ]; then if [ ${#network} -eq 0 ]; then
echo "FAIL see ${logFile}" echo "FAIL see ${logFile}"

Loading…
Cancel
Save