From fafcf82538b1f88ea53917e3bacd43749e69d17b Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 11 Dec 2018 19:20:58 +0100 Subject: [PATCH] check if version is available --- home.admin/_bootstrap.migration.sh | 7 +++++++ home.admin/_bootstrap.provision.sh | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/home.admin/_bootstrap.migration.sh b/home.admin/_bootstrap.migration.sh index 27aaff6..2b09f0c 100644 --- a/home.admin/_bootstrap.migration.sh +++ b/home.admin/_bootstrap.migration.sh @@ -27,6 +27,13 @@ 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}" diff --git a/home.admin/_bootstrap.provision.sh b/home.admin/_bootstrap.provision.sh index f197b53..fb5af79 100644 --- a/home.admin/_bootstrap.provision.sh +++ b/home.admin/_bootstrap.provision.sh @@ -26,6 +26,13 @@ if [ ${configExists} -eq 0 ]; then exit 1 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 if [ ${#network} -eq 0 ]; then echo "FAIL see ${logFile}"