Permalink
Browse files

Wait for update, do not update during init.

Big UX improvement, I think. I think it was annoying having to wait for an update when running an init. Want the UX to be better than that and updates to be more transparent.
  • Loading branch information...
Cat5TV committed Aug 26, 2018
1 parent f30aa3e commit 9037080bc4566101caa0ba45f15dbeb094756d3e
Showing with 12 additions and 4 deletions.
  1. +12 −4 init.sh
16 init.sh
@@ -6,6 +6,16 @@
ver=$(/usr/local/share/nems/nems-scripts/info.sh nemsver)
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
if [[ -f /tmp/qf.sh ]]; then
printf "Please wait... your NEMS server is being updated."
while [ -f /tmp/qf.sh ]
do
printf "."
sleep 2
done
echo " Ready."
fi
if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.4'")}') )); then
confbase=/etc/nems/conf/
nagios=nagios
@@ -23,14 +33,12 @@ else
online=$(/usr/local/share/nems/nems-scripts/info.sh online)
if [[ $online == 0 ]]; then
echo "You need to configure Internet connectivity first."
echo "Your Internet connection doesn't appear to be functional."
echo "Please ensure your NEMS Linux server has Internet connectivity and try again."
echo ""
exit
fi
# Perform any fixes that have been released since NEMS was built
/usr/local/share/nems/nems-scripts/fixes.sh
if [[ -d /home/pi ]]; then
# Must continue to support NEMS 1.1 and 1.2.x
echo "First, let's change the password of the pi Linux user..."

0 comments on commit 9037080

Please sign in to comment.