mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Parse machine id to supervisor for token
This commit is contained in:
parent
42f195e91c
commit
50e0149d37
@ -7,6 +7,7 @@ CONFIG_FILE=/mnt/data/hassos.json
|
||||
SUPERVISOR="$(jq --raw-output '.supervisor' ${CONFIG_FILE})"
|
||||
DOCKER_ARGS="$(jq --raw-output '.supervisor_args // empty' ${CONFIG_FILE})"
|
||||
APPARMOR="$(jq --raw-output '.supervisor_apparmor // "docker-default"' ${CONFIG_FILE})"
|
||||
MACHINE_ID="$(cat /etc/machine-id)"
|
||||
|
||||
# Init supervisor
|
||||
HASSOS_DATA=/mnt/data/supervisor
|
||||
@ -27,6 +28,7 @@ runSupervisor() {
|
||||
-v ${HASSOS_DATA}:/data \
|
||||
-e SUPERVISOR_SHARE=${HASSOS_DATA} \
|
||||
-e SUPERVISOR_NAME=hassos_supervisor \
|
||||
-e MACHINE_ID=${MACHINE_ID} \
|
||||
$DOCKER_ARGS \
|
||||
${SUPERVISOR}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user