[SOLVED] [openhabian] migration from 5.0.0 to 5.0.1 milestone: login logo is reporting openhab2logo instead of openhablogo

Hi folks,

as title, when I login via SSH to my system after migration to 5.0.1 from 5.0.0 M4, I see the output coming from the openhab2logo instead of openhablogo.

Better, I see the output of /var/lib/openhab2/etc/version.properties instead of /var/lib/openhab/etc/version.properties.

how can I fix it?

thanks

Andrea

Hi team,

any clue?

thanks

Andrea

solved :slight_smile:

Aha. Care to explain what you did and why you linked there?

1 Like

yep. Because my bash.profile was wrongly pointing to openhab2 (the old version was supposing to use openhab for openhab 3, otherwise openhab2).

changing the bash.profile properly (as suggested in that case) solved the issue. Now the variables OHVERSION and OHBUILD are set correctly.

for reference:

#if openhab3_is_installed; then OHPKG="openhab"; else OHPKG="openhab2"; fi

OHPKG="openhab"
OHVERSION="$(sed -n 's/openhab-distro\s*: //p' /var/lib/${OHPKG}/etc/version.properties)"
OHBUILD="$(sed -n 's/build-no\s*: //p' /var/lib/${OHPKG}/etc/version.properties)"