Skip to content

Commit

Permalink
openhab timezone setting -> openhab_misc
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <[email protected]>
  • Loading branch information
mstormi authored Sep 12, 2024
1 parent 2f946d0 commit c955e3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/openhab.bash
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ openhab_misc() {
echo -n "$(timestamp) [openHABian] Setting openHAB HTTP/HTTPS ports... "
if ! cond_redirect sed -i -e 's|^#*.*OPENHAB_HTTP_PORT=.*$|OPENHAB_HTTP_PORT=8080|g' /etc/default/openhab; then echo "FAILED"; return 1; fi
if cond_redirect sed -i -e 's|^#*.*OPENHAB_HTTPS_PORT=.*$|OPENHAB_HTTPS_PORT=8443|g' /etc/default/openhab; then echo "OK"; else echo "FAILED"; return 1; fi

echo -n "$(timestamp) [openHABian] Setting openHAB timezone... "
if cond_redirect sed -ri "s|^(EXTRA_JAVA_OPTS.*interning=true)|\1 -Duser.timezone=${timezone:-Europe/London}|g" /etc/default/openhab; then echo "OK"; else echo "FAILED"; return 1; fi
}

## Create a openHAB dashboard title and image for the input application.
Expand Down

0 comments on commit c955e3e

Please sign in to comment.