Skip to content

Commit

Permalink
Bugfix: we can't fully disable destkop due to automation
Browse files Browse the repository at this point in the history
- suppress service startup for OpenHab
  • Loading branch information
igorpecovnik committed Nov 6, 2024
1 parent 99109e4 commit 877142c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion tools/json/config.software.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
{
"id": "Desktops",
"description": "Desktop Environments",
"status": "Disabled",
"status": "Stable",
"sub": [
{
"id": "XFCE",
"description": "XFCE desktop",
"status": "Disabled",
"sub": [
{
"id": "XFCE01",
Expand Down Expand Up @@ -59,6 +60,7 @@
{
"id": "Gnome",
"description": "Gnome desktop",
"status": "Disabled",
"sub": [
{
"id": "GNOME01",
Expand Down Expand Up @@ -152,6 +154,7 @@
{
"id": "Cinnamon",
"description": "Cinnamon desktop",
"status": "Disabled",
"sub": [
{
"id": "CINNAMON01",
Expand Down
8 changes: 4 additions & 4 deletions tools/modules/software/install_openhab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ openhab() {
# 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
systemctl daemon-reload 2> /dev/null
systemctl enable openhab.service 2> /dev/null
systemctl start openhab.service 2> /dev/null

;;

uninstall)

apt_install_wrapper apt-get -y remove zulu17-jdk openhab openhab-addons
systemctl disable openhab.service
systemctl disable openhab.service 2> /dev/null
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

Expand Down

0 comments on commit 877142c

Please sign in to comment.