fixed changed

pull/88/head
alanbjohnston 5 years ago committed by GitHub
parent e9dc3079c6
commit daed9e4862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ make debug
FLAG=0 FLAG=0
if [[ $(diff systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then if [[ $(diff systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then
echo "copying cubesatsim.service" echo "changed cubesatsim.service"
sudo cp /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service sudo cp /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service
FLAG=1 FLAG=1
else else
@ -38,7 +38,7 @@ if [ $FLAG -eq 1 ]; then
echo "systemctl daemon-reload" echo "systemctl daemon-reload"
sudo systemctl daemon-reload sudo systemctl daemon-reload
else else
if [[ $(grep 'updated' /home/pi/CubeSatSim/.updated) ]]; then if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
echo "nothing to do" echo "nothing to do"
else else
echo "systemctl restart cubesatsim" echo "systemctl restart cubesatsim"

Loading…
Cancel
Save

Powered by TurnKey Linux.