Permalink
Browse files

Don't do update if fixes running

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 8, 2019
1 parent 7fcef58 commit 31e261455e60e4072cd6e15ac787f4730251f709
Showing with 11 additions and 0 deletions.
  1. +11 −0 update.sh
@@ -28,6 +28,17 @@ else
fi
echo $$ > /var/run/nems-update.pid

# Don't do updates if fixes is running, since that is a sub-process of update and could conflict
fixes=$(/usr/local/bin/nems-info fixes)
if [[ $fixes == 1 ]]; then
echo 'NEMS Linux is currently updating itself. Please wait...'
while [[ $fixes == 1 ]]
do
sleep 1
update=$(/usr/local/bin/nems-info fixes)
done
fi

# Update nems-migrator
printf "Updating nems-migrator... "
cd /root/nems/nems-migrator

0 comments on commit 31e2614

Please sign in to comment.