Update install OliveTin systemd

master-bo
Alan Johnston 3 months ago committed by GitHub
parent 5d6d3fdcb0
commit 29fae4256c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -746,6 +746,7 @@ if [ -f "$FILE" ]; then
if [[ $(diff /home/pi/CubeSatSim/OliveTin/config.yaml /etc/OliveTin/config.yaml) ]]; then
echo "changed config.yaml"
sudo cp /home/pi/CubeSatSim/OliveTin/config.yaml /etc/OliveTin/config.yaml
sudo systemctl restart OliveTin
else
echo "no change to config.yaml"
fi
@ -758,6 +759,23 @@ else
sudo systemctl enable --now OliveTin
fi
FILE=/etc/systemd/system/OliveTin.service
if [ -f "$FILE" ]; then
if [[ $(diff /home/pi/CubeSatSim/systemd/OliveTin.service /etc/systemd/system/OliveTin.service) ]]; then
echo "changed OliveTin.service."
sudo cp /home/pi/CubeSatSim/systemd/OliveTin.service /etc/systemd/system/OliveTin.service
sudo systemctl restart OliveTin
FLAG=1
else
echo "no change to OliveTin.service."
fi
else
echo "creating OliveTin.service."
sudo cp /home/pi/CubeSatSim/systemd/OliveTin.service /etc/systemd/system/OliveTin.service
sudo systemctl enable OliveTin
FLAG=1
fi
FILE=/etc/asound.conf
if [ -f "$FILE" ]; then
if [[ $(diff /home/pi/CubeSatSim/asound.conf /etc/asound.conf) ]]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.