From 0c4693f9eb0649c37a35b3251714c65382c6bd3e Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Mon, 3 Feb 2025 10:13:57 -0700 Subject: [PATCH] Remove debugging code Signed-off-by: Ethan Dye --- build-image/first-boot.bash | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/build-image/first-boot.bash b/build-image/first-boot.bash index f28424109..cc7df0fb1 100755 --- a/build-image/first-boot.bash +++ b/build-image/first-boot.bash @@ -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" @@ -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