Skip to content

Commit 4407726

Browse files
Update create_latest_candle.sh
1 parent b753d6f commit 4407726

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

create_latest_candle.sh

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ set +e # continue on errors
1111

1212
# If you want to use this script to directly create disk images, then you can use:
1313
# export CREATE_DISK_IMAGE=yes
14-
# This is not recommended however. It's better to restart the controller and allow it to install Zigbee2MQTT fully,
15-
# and only then run the prepare_for_disk_image script.
16-
1714

1815
# Set the script to download the very latest available version. Risky. Enabling this creates the /boot/candle_cutting_edge.txt file
1916
# export CUTTING_EDGE=yes
@@ -25,7 +22,7 @@ set +e # continue on errors
2522
# export SKIP_PYTHON=yes
2623
# export SKIP_RESPEAKER=yes
2724
# export SKIP_BLUEALSA=yes
28-
# export SKIP_CONTROLLER_INSTALL=yes
25+
# export SKIP_CONTROLLER=yes
2926
# export SKIP_DEBUG=yes
3027
# export SKIP_REBOOT=yes
3128

@@ -594,7 +591,7 @@ fi
594591

595592
# PRE-DOWNLOAD CANDLE CONTROLLER INSTALLER
596593

597-
if [[ -z "${SKIP_CONTROLLER_INSTALL}" ]] || [ "$SKIP_CONTROLLER_INSTALL" = no ];
594+
if [[ -z "${SKIP_CONTROLLER}" ]] || [ "$SKIP_CONTROLLER" = no ];
598595
then
599596

600597
echo
@@ -2160,9 +2157,12 @@ fi
21602157

21612158
# Copying the fstab file is the last thing to do since it could render the system inaccessible if the mountpoints it needs are not available
21622159

2163-
if [ -f /home/pi/configuration-files/boot/fstab3.bak ] \
2164-
&& [ -f /home/pi/configuration-files/boot/fstab4.bak ] \
2165-
&& [ -d /home/pi/.webthings/etc/wpa_supplicant ] \
2160+
if [ -f /boot/fstab3.bak ] \
2161+
&& [ -f /boot/fstab4.bak ]; then
2162+
echo "/boot/fstab3.bak and /boot/fstab4.bak exist"
2163+
fi
2164+
2165+
if [ -d /home/pi/.webthings/etc/wpa_supplicant ] \
21662166
&& [ -d /home/pi/.webthings/var/lib/bluetooth ] \
21672167
&& [ -d /home/pi/.webthings/etc/ssh ] \
21682168
&& [ -f /home/pi/.webthings/etc/hostname ] \
@@ -2206,8 +2206,6 @@ else
22062206
echo
22072207
echo "ERROR, SOME VITAL FSTAB MOUNTPOINTS DO NOT EXIST"
22082208

2209-
ls /home/pi/configuration-files/boot/fstab3.bak
2210-
ls /home/pi/configuration-files/boot/fstab4.bak
22112209
ls /home/pi/.webthings/etc/wpa_supplicant
22122210
ls /home/pi/.webthings/var/lib/bluetooth
22132211
ls /home/pi/.webthings/etc/ssh
@@ -2291,7 +2289,7 @@ fi
22912289

22922290

22932291

2294-
if [[ -z "${SKIP_CONTROLLER_INSTALL}" ]] || [ "$SKIP_CONTROLLER_INSTALL" = no ];
2292+
if [[ -z "${SKIP_CONTROLLER}" ]] || [ "$SKIP_CONTROLLER" = no ];
22952293
then
22962294

22972295
if [ -f install_candle_controller.sh ]; then

0 commit comments

Comments
 (0)