Skip to content

Commit 3aa64fb

Browse files
Add files via upload
1 parent 863986c commit 3aa64fb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

create_latest_candle_dev.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

install_candle_controller.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ else
303303

304304
else
305305

306+
echo "Stable, but latest_stable_controller.tar missing. Attempting build." | sudo tee -a /dev/kmsg
307+
echo "Stable, but latest_stable_controller.tar missing. Attempting build." | sudo tee -a /boot/candle_log.txt
308+
306309
mkdir -p /home/pi/webthings
307310
chown pi:pi /home/pi/webthings
308311
cd /home/pi/webthings
@@ -725,8 +728,8 @@ nvm cache clear
725728

726729
echo
727730
#echo "sub-script that installs the Candle controller is done. Returning to the main install script."
728-
echo "Candle: Sub-script that installs the Candle controller is done. Returning to the main install script." | sudo tee -a /dev/kmsg
729-
echo "Candle: Sub-script that installs the Candle controller is done. Returning to the main install script." | sudo tee -a /boot/candle_log.txt
731+
echo "Candle: Returning to the main install script." | sudo tee -a /dev/kmsg
732+
echo "Candle: Returning to the main install script." | sudo tee -a /boot/candle_log.txt
730733
echo
731734
exit 0
732735

0 commit comments

Comments
 (0)