-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff6280a
commit b705b45
Showing
5 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ENABLED=true | ||
CONDITION="[ -f /lib/systemd/system/openhab.service ]" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
=== "Access to the web interface" | ||
|
||
The web interface is accessible via port **8444**: | ||
|
||
- URL: `https://<your.IP>:8444` | ||
- Username/Password: Are set at first web interface login | ||
|
||
=== "Directories" | ||
|
||
- Install directory: `/usr/share/openhab` | ||
- Site configuration directory: `/etc/openhab` | ||
- Config file: `/etc/default/openhab` | ||
- Data directory: `/var/lib/openhab` | ||
|
||
See also [openHAB file locations](https://www.openhab.org/docs/installation/linux.html#file-locations). | ||
|
||
=== "View logs" | ||
|
||
```sh | ||
journalctl -u openhab | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
module_options+=( | ||
["openhab,author"]="@igorpecovnik" | ||
["openhab,ref_link"]="" | ||
["openhab,feature"]="install_openhab" | ||
["openhab,desc"]="Install openhab from a repo using apt" | ||
["openhab,example"]="install_openhab" | ||
["openhab,status"]="Active" | ||
) | ||
# | ||
# Install openHAB from repo using apt | ||
# | ||
openhab() { | ||
|
||
case "$1" in | ||
install) | ||
|
||
# keys | ||
wget -qO - https://repos.azul.com/azul-repo.key | gpg --dearmor > "/usr/share/keyrings/azul.gpg" | ||
wget -qO - https://openhab.jfrog.io/artifactory/api/gpg/key/public | gpg --dearmor > "/usr/share/keyrings/openhab.gpg" | ||
# repos | ||
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" > "/etc/apt/sources.list.d/zulu.list" | ||
echo "deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main" > "/etc/apt/sources.list.d/openhab.list" | ||
|
||
apt_install_wrapper apt-get update | ||
|
||
# Optional preinstall top 10 tools | ||
apt_install_wrapper apt-get -y install zulu17-jdk | ||
apt_install_wrapper apt-get -y install openhab openhab-addons | ||
systemctl daemon-reload | ||
systemctl enable openhab.service | ||
systemctl start openhab.service | ||
|
||
;; | ||
|
||
uninstall) | ||
|
||
apt_install_wrapper apt-get -y remove zulu17-jdk openhab openhab-addons | ||
systemctl disable openhab.service | ||
rm -f /usr/share/keyrings/openhab.gpg /usr/share/keyrings/azul.gpg | ||
rm -f /etc/apt/sources.list.d/zulu.list /etc/apt/sources.list.d/openhab.list | ||
|
||
;; | ||
esac | ||
} |