fix cubesatsim.service install

Refactor cubesatsim.service handling in install script.
master-b-gpio-l
Alan Johnston 1 month ago committed by GitHub
parent 0096541e80
commit 2c2fde9aa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -469,12 +469,21 @@ else
fi fi
fi fi
if [[ $(diff /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then FILE=/etc/systemd/system/cubesatsim.service
echo "changed cubesatsim.service." if [ -f "$FILE" ]; then
if [[ $(diff /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then
echo "changed cubesatsim.service."
sudo cp /home/pi/CubeSatSim/systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service
FLAG=1
else
echo "no changes to cubesatsim.service."
fi
else
echo "creating 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
sudo systemctl enable command
FLAG=1 FLAG=1
else
echo "no changes to cubesatsim.service."
fi fi
FILE=/etc/systemd/system/rpitx.service FILE=/etc/systemd/system/rpitx.service

Loading…
Cancel
Save

Powered by TurnKey Linux.