Skip to content

Commit

Permalink
Update candle_first_run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Aug 16, 2022
1 parent 92773db commit fc9f68e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions home/pi/candle/candle_first_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ then
cp /etc/machine-id /ro/etc/machine-id
mount -o remount,ro /ro
fi
echo "$(date) - Machine ID generated" >> /boot/candle.log
echo "$(date) - Machine ID generated" >> /boot/candle_log.txt
echo "Candle: generated machine ID" >> /dev/kmsg
fi

Expand All @@ -37,7 +37,7 @@ fi
/bin/dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096
/bin/sh -c "/bin/rm -f -v /etc/ssh/ssh_host_*_key*"
/usr/bin/ssh-keygen -A -v
echo "$(date) - New SSH security keys generated." >> /boot/candle.log
echo "$(date) - New SSH security keys generated." >> /boot/candle_log.txt


# Re-enable the tunnel. For developer use only!
Expand All @@ -46,7 +46,7 @@ if [ -f /boot/tunnel.txt ]; then
sqlite3 /home/pi/.webthings/config/db.sqlite3 "DELETE FROM settings WHERE key='tunneltoken'"
sqlite3 /home/pi/.webthings/config/db.sqlite3 "DELETE FROM settings WHERE key='notunnel'"
rm -rf /home/pi/.webthings/ssl/
echo "$(date) - You have enabled the secret tunnel option. Please use this only for development reasons." >> /boot/candle.log
echo "$(date) - You have enabled the secret tunnel option. Please use this only for development reasons." >> /boot/candle_log.txt
else
cp /home/pi/.webthings/etc/webthings_settings_backup.js /home/pi/.webthings/etc/webthings_settings.js
fi
Expand Down

0 comments on commit fc9f68e

Please sign in to comment.