Skip to content

Commit 157c62a

Browse files
committed
🦸‍ Home Assistant Supervised in Docker
1 parent d1e2e3e commit 157c62a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/sh
2+
3+
# fix for Synology
4+
mkdir -p /run/systemd/unit-root/bin
5+
mkdir -p /run/systemd/unit-root/lib/modules
6+
ls -al /run/systemd/unit-root >> /tmp/hassio.log
7+
8+
sed -i -e "s/ProtectSystem=true/ProtectSystem=false/" /lib/systemd/system/NetworkManager.service
9+
systemctl mask systemd-tmpfiles-setup systemd-tmpfiles-clean

build/scripts/10-hassio-apt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,3 @@ esac
4545
wget --tries=3 -O /opt/os-agent.deb "https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_$ARCH.deb"
4646
wget --tries=3 -O /opt/hassio.deb "https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb"
4747
wget --tries=3 -O /opt/hasscn.deb "https://github.com/hasscc/supervised-installer/releases/latest/download/homeassistant-supervised.deb"
48-
49-
50-
# fix for Synology
51-
sed -i -e "s/ProtectSystem=true/ProtectSystem=false/" /lib/systemd/system/NetworkManager.service
52-
systemctl mask systemd-logind.service systemd-hostnamed.service systemd-resolved.service e2scrub_reap.service

0 commit comments

Comments
 (0)