diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index 5513d28..7ca4e9a 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -14,6 +14,12 @@ echo "network(${network})" echo "chain(${chain})" echo "setupStep(${setupStep})" +if [ ${#network} -eq 0 ]; then + echo "FAIL: Something is wrong. There is no value for network in ${infoFile}." + echo "Should be at least default value. EXIT" + exit 1 +fi + # if no setup step in info file init with 0 if [ ${#setupStep} -eq 0 ];then echo "Init setupStep=0" diff --git a/home.admin/assets/bootstrap.service b/home.admin/assets/bootstrap.service index dbc96dc..4c6e1aa 100644 --- a/home.admin/assets/bootstrap.service +++ b/home.admin/assets/bootstrap.service @@ -2,7 +2,7 @@ # /etc/systemd/system/bootstrap.service [Unit] -Description=setting up RaspiBlitz and enforcing the config on every startup +Description=execute on every startup before everything else is starting After=network.target [Service]