Skip to content

Commit

Permalink
Only remove if openHAB 4.3+ installed
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
  • Loading branch information
ecdye committed Dec 18, 2024
1 parent 00538fc commit 8b2ec1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ for you to lookup.

## Frontail removed ## December XX, 2024
We have removed the frontail log-viewer package and deleted it from all
systems. As of openHAB 4.3 a log-viewer is built in to openHAB, and frontail
has serious security vulnerabilities present and is no longer maintained. We
apologize for any inconvenience this may cause.
systems with openHAB 4.3 or later installed. As of openHAB 4.3 a log-viewer
is built in to openHAB, and frontail has serious security vulnerabilities
present and is no longer maintained. We apologize for any inconvenience
this may cause.

## Legacy openHAB 2 support removed ## November 23, 2024
We have removed legacy support for the openHAB 2 systems. Please upgrade to
Expand Down
7 changes: 4 additions & 3 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## Frontail removed ## December XX, 2024
We have removed the frontail log-viewer package and deleted it from all
systems. As of openHAB 4.3 a log-viewer is built in to openHAB, and frontail
has serious security vulnerabilities present and is no longer maintained. We
apologize for any inconvenience this may cause.
systems with openHAB 4.3 or later installed. As of openHAB 4.3 a log-viewer
is built in to openHAB, and frontail has serious security vulnerabilities
present and is no longer maintained. We apologize for any inconvenience
this may cause.

## Legacy openHAB 2 support removed ## November 23, 2024
We have removed legacy support for the openHAB 2 systems. Please upgrade to
Expand Down
2 changes: 2 additions & 0 deletions functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ frontail_remove() {

frontailBase="$(npm list -g | head -n 1)/node_modules/frontail"

if ! [[ $(openhab-cli info | grep "Version" | xargs | cut -d ' ' -f 2) =~ 4.[3-9]* ]]; then return 0; fi

if [[ -d $frontailBase ]] || [[ -d $frontailDir ]]; then
echo -n "$(timestamp) [openHABian] Removing openHAB Log Viewer frontail... "
if [[ $(systemctl is-active frontail.service) == "active" ]]; then
Expand Down

0 comments on commit 8b2ec1d

Please sign in to comment.