Fix: remove user pi reference
This commit is contained in:
parent
251744a632
commit
dcd7ee16b8
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo -e "Install TFT-MoodeCoverArt Service. \n"
|
echo -e "Install TFT-MoodeCoverArt Service. \n"
|
||||||
cd /home/pi/TFT-MoodeCoverArt
|
cd /home/volumio/TFT-MoodeCoverArt
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
@ -33,4 +33,4 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "TFT-MoodeCoverArt install complete"
|
echo "TFT-MoodeCoverArt install complete"
|
||||||
|
@ -5,10 +5,10 @@ After=mpd.socket mpd.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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
|
#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
|
Restart=on-abort
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
while getopts ":sq" opt; do
|
while getopts ":sq" opt; do
|
||||||
case ${opt} in
|
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]"
|
\? ) echo "Usage: cmd [-s] [-q]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user