Browse Source

detect when setup is already done

#146
rootzoll 7 years ago
parent
commit
4aaeb0e9df
  1. 16
      home.admin/10setupBlitz.sh

16
home.admin/10setupBlitz.sh

@ -11,6 +11,22 @@ if [ ${isMainChain} -gt 0 ];then
chain="main"
fi
# get setup progress
setupStep=$(sudo -u admin cat /home/admin/.setup)
if [ ${#setupStep} -eq 0 ];then
setupStep=0
fi
# if setup if ready --> REBOOT
if [ ${setupStep} -gt 89 ];then
echo ""
echo "*** SETUP OK ---> REBOOT ***"
echo "PRESS ENTER .. to start the final reboot."
read key
sudo shutdown -r now
exit 1
fi
# CHECK WHAT IS ALREADY WORKING
# check list from top down - so ./10setupBlitz.sh
# and re-enters the setup process at the correct spot

Loading…
Cancel
Save