Skip to content

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Feb 3, 2025
1 parent 85b6002 commit 0c4693f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions build-image/first-boot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ fi

# shellcheck disable=SC2154
echo -n "$(timestamp) [openHABian] Updating myself from ${repositoryurl:-https://github.com/openhab/openhabian.git}, ${clonebranch:-openHAB} branch... "
if running_in_docker || [[ $(eval "$(openhabian_update "${clonebranch:-openHAB}" &> /dev/null)") -eq 0 ]]; then
if [[ $(eval "$(openhabian_update "${clonebranch:-openHAB}" &> /dev/null)") -eq 0 ]]; then
echo "OK"
else
echo "FAILED"
Expand Down Expand Up @@ -252,17 +252,7 @@ if running_in_docker; then
ps -auxq "$(cat "$PID")" | awk '/openhab/ {print "size/res="$5"/"$6" KB"}'
else
echo -e "\\n${COL_RED}Karaf PID missing, openHAB process not running (yet?).${COL_DEF}"
cat /var/log/openhab/openhab.log
systemctl restart openhab.service
systemctl status openhab.service
journalctl -xeu openhab.service
sleep 30
if [[ -f "$PID" ]]; then
ps -auxq "$(cat "$PID")" | awk '/openhab/ {print "size/res="$5"/"$6" KB"}'
else
echo -e "\\n${COL_RED}Karaf PID still missing, openHAB process not running.${COL_DEF}"
exit 1
fi
exit 1
fi
echo -e "$COL_DEF"
fi
Expand Down

0 comments on commit 0c4693f

Please sign in to comment.