mirror of
https://github.com/pkali/piradio-mini.git
synced 2026-05-20 22:34:22 +02:00
Much better update procedure :)
This commit is contained in:
@@ -12,5 +12,14 @@ rm -r /usr/share/piradio-mini-master
|
|||||||
# Remove github file
|
# Remove github file
|
||||||
rm /home/pi/piradionew.zip
|
rm /home/pi/piradionew.zip
|
||||||
|
|
||||||
|
# Check for additional update script
|
||||||
|
if [ -f "/usr/share/radio/html/scripts/update.sh" ]
|
||||||
|
then
|
||||||
|
# Call update script
|
||||||
|
/usr/share/radio/html/scripts/update.sh
|
||||||
|
# Remove update script
|
||||||
|
rm /usr/share/radio/html/scripts/update.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# Reboot after update
|
# Reboot after update
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user