Fix: remove user pi reference
This commit is contained in:
parent
251744a632
commit
dcd7ee16b8
@ -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
|
||||
|
@ -5,9 +5,9 @@ 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]
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
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]"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user