Skip to content

Commit 50e7d49

Browse files
Update create_latest_candle.sh
1 parent 3aa64fb commit 50e7d49

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

create_latest_candle.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ if [ -f /boot/candle_cutting_edge.txt ]; then
556556

557557
else
558558
echo "Candle: Downloading stable read-only script" >> /dev/kmsg
559-
echo "Candle: Downloading stable edge read-only script" >> /boot/candle_log.txt
559+
echo "Candle: Downloading stable read-only script" >> /boot/candle_log.txt
560560
curl -s https://api.github.com/repos/createcandle/ro-overlay/releases/latest \
561561
| grep "tarball_url" \
562562
| cut -d : -f 2,3 \
@@ -670,10 +670,12 @@ then
670670

671671
if [ -f /boot/candle_cutting_edge.txt ]; then
672672
echo "Candle: Starting download of cutting edge controller install script" >> /dev/kmsg
673+
echo "Candle: Starting download of cutting edge controller install script" >> /boot/candle_log.txt
673674
wget https://raw.githubusercontent.com/createcandle/install-scripts/main/install_candle_controller.sh -O ./install_candle_controller.sh
674675

675676
else
676677
echo "Candle: Starting download of stable controller install script" >> /dev/kmsg
678+
echo "Candle: Starting download of stable controller install script" >> /boot/candle_log.txt
677679
curl -s https://api.github.com/repos/createcandle/install-scripts/releases/latest \
678680
| grep "tarball_url" \
679681
| cut -d : -f 2,3 \
@@ -708,6 +710,8 @@ then
708710
if [ -f /home/pi/latest_stable_controller.tar ] && [ -f /home/pi/latest_stable_controller.tar.txt ]; then
709711

710712
echo "controller tar & md5 downloaded OK"
713+
echo "Candle: controller tar & md5 downloaded OK" >> /dev/kmsg
714+
echo "Candle: controller tar & md5 downloaded OK" >> /boot/candle_log.txt
711715

712716
if [ "$(md5sum latest_stable_controller.tar | awk '{print $1}')" = "$(cat /home/pi/latest_stable_controller.tar.txt)" ]; then
713717
echo "MD5 checksum of latest_stable_controller.tar matched"
@@ -2533,7 +2537,7 @@ fi
25332537
if [ -f /boot/candle_cutting_edge.txt ]; then
25342538
echo "disabling cutting edge" >> /dev/kmsg
25352539
echo "disabling cutting edge" >> /boot/candle_log.txt
2536-
/boot/candle_cutting_edge.txt
2540+
rm /boot/candle_cutting_edge.txt
25372541
fi
25382542

25392543

0 commit comments

Comments
 (0)