Update hassio-supervisor
This commit is contained in:
parent
349af420f0
commit
e1fd91f034
1 changed files with 1 additions and 4 deletions
|
@ -8,9 +8,6 @@ SUPERVISOR="$(jq --raw-output '.supervisor' ${CONFIG_FILE})"
|
||||||
MACHINE="$(jq --raw-output '.machine' ${CONFIG_FILE})"
|
MACHINE="$(jq --raw-output '.machine' ${CONFIG_FILE})"
|
||||||
DATA="$(jq --raw-output '.data // "/usr/share/hassio"' ${CONFIG_FILE})"
|
DATA="$(jq --raw-output '.data // "/usr/share/hassio"' ${CONFIG_FILE})"
|
||||||
|
|
||||||
# AppArmor Support
|
|
||||||
APPARMOR="--security-opt apparmor=hassio-supervisor"
|
|
||||||
|
|
||||||
# Init supervisor
|
# Init supervisor
|
||||||
HASSIO_DATA=${DATA}
|
HASSIO_DATA=${DATA}
|
||||||
HASSIO_IMAGE_ID=$(docker inspect --format='{{.Id}}' "${SUPERVISOR}")
|
HASSIO_IMAGE_ID=$(docker inspect --format='{{.Id}}' "${SUPERVISOR}")
|
||||||
|
@ -22,7 +19,7 @@ runSupervisor() {
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
docker run --name hassio_supervisor \
|
docker run --name hassio_supervisor \
|
||||||
--privileged \
|
--privileged \
|
||||||
$APPARMOR \
|
--security-opt apparmor=hassio-supervisor \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
-v /run/docker.sock:/run/docker.sock \
|
-v /run/docker.sock:/run/docker.sock \
|
||||||
-v /run/dbus:/run/dbus \
|
-v /run/dbus:/run/dbus \
|
||||||
|
|
Loading…
Reference in a new issue