Fix: remove user pi reference

This commit is contained in:
Bertrand Benjamin 2020-09-20 21:11:13 +02:00
parent 251744a632
commit dcd7ee16b8
3 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
echo -e "Install TFT-MoodeCoverArt Service. \n"
cd /home/pi/TFT-MoodeCoverArt
cd /home/volumio/TFT-MoodeCoverArt
while true
do
@ -33,4 +33,4 @@ do
esac
done
echo "TFT-MoodeCoverArt install complete"
echo "TFT-MoodeCoverArt install complete"

View File

@ -5,10 +5,10 @@ After=mpd.socket mpd.service
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py &
ExecStart=/usr/bin/python3 /home/volumio/TFT-MoodeCoverArt/tft_moode_coverart.py &
#ExecStartPre=/bin/sleep 15
ExecStop=/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
ExecStop=/home/volumio/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
Restart=on-abort
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View File

@ -2,11 +2,11 @@
while getopts ":sq" opt; do
case ${opt} in
s ) sudo pkill -f tft_moode_coverart.py; sudo /usr/bin/python3 /home/pi/TFT-MoodeCoverArt/clear_display.py; sudo /usr/bin/python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py &
s ) sudo pkill -f tft_moode_coverart.py; sudo /usr/bin/python3 /home/volumio/TFT-MoodeCoverArt/clear_display.py; sudo /usr/bin/python3 /home/volumio/TFT-MoodeCoverArt/tft_moode_coverart.py &
;;
q ) sudo pkill -f tft_moode_coverart.py; sudo python3 /home/pi/TFT-MoodeCoverArt/clear_display.py
q ) sudo pkill -f tft_moode_coverart.py; sudo python3 /home/volumio/TFT-MoodeCoverArt/clear_display.py
;;
\? ) echo "Usage: cmd [-s] [-q]"
;;
esac
done
done