added grep for changed to do restart

pull/111/head
alanbjohnston 5 years ago committed by GitHub
parent b6627101bc
commit 3727a2666a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,11 @@ fi
if [ $FLAG -eq 1 ]; then if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload" echo "systemctl daemon-reload"
sudo systemctl daemon-reload sudo systemctl daemon-reload
else
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "nothing to do"
else else
echo "systemctl restart cubesatsim" echo "systemctl restart cubesatsim"
sudo systemctl restart cubesatsim sudo systemctl restart cubesatsim
fi fi
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.