So I am trying to run hass.io on docker. I don't want to use the homeassistant/home-assistant image as that is not the hass.io image which supports plugins
So I did an install with script here https://github.com/home-assistant/hassi ... all-hassio
socat was missing so I installed entware and then installed the package
The script which does the install is having issues: https://raw.githubusercontent.com/home- ... io_install
I did some modifications to the script
Everything installs fine till it reaches "# Init system" part.
Code: Select all
# Init system if [ "$INIT_SYSTEM" == "systemd" ]; then echo "[INFO] Init systemd" curl -sL "$URL_SERVICE_HASSIO" > "/etc/systemd/system/hassio-supervisor.service" curl -sL "$URL_SERVICE_HOSTCONTROL" > "/etc/systemd/system/hassio-hc.service" sed -i "s|%%BIN_DIR%%|$BIN_DIR|g" "/etc/systemd/system/hassio-hc.service" sed -i "s|%%BIN_DIR%%|$BIN_DIR|g" "/etc/systemd/system/hassio-supervisor.service" systemctl enable hassio-supervisor.service echo "[INFO] Start services" systemctl start hassio-hc.service systemctl start hassio-supervisor.service fi
But systemctl also don't exist in DSM 6.2 as well. I read that upstart exists apparently which is same. But I am not sure about this last piece of code
Can anyone help me with the last bit of code so that I can get both the scripts started and keep it running on reboots?
Code: Select all
systemctl enable hassio-supervisor.service echo "[INFO] Start services" systemctl start hassio-hc.service systemctl start hassio-supervisor.service
Content of hassio-supervisor.service: https://github.com/home-assistant/hassi ... or.service