Skip to content

Commit 847bd3e

Browse files
committed
setuidgid
1 parent 7f5fbbd commit 847bd3e

File tree

1 file changed

+7
-7
lines changed
  • rootfs/container/run/available/20-homeassistant

1 file changed

+7
-7
lines changed

rootfs/container/run/available/20-homeassistant/run

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ if var_true "${SKIP_PIP,,}" ; then skip_pip="--skip-pip"; fi
4040

4141
print_start "Starting Home Assistant ${HOMEASSISTANT_VERSION}"
4242
source /opt/homeassistant/bin/activate && \
43-
exec sudo -u "${HOMEASSISTANT_USER}" \
44-
/opt/homeassistant/bin/python3 \
45-
-m homeassistant \
46-
--config "${CONFIG_PATH}" \
47-
--log-rotate-days 0 ${log_level} \
48-
--log-file "${LOG_PATH%/}"/"${LOG_FILE}" \
49-
${skip_pip} ${homeassistant_mode} ${HOMEASSISTANT_ARGS}
43+
exec s6-setuidgid "${HOMEASSISTANT_USER}" \
44+
/opt/homeassistant/bin/python3 \
45+
-m homeassistant \
46+
--config "${CONFIG_PATH}" \
47+
--log-rotate-days 0 ${log_level} \
48+
--log-file "${LOG_PATH%/}"/"${LOG_FILE}" \
49+
${skip_pip} ${homeassistant_mode} ${HOMEASSISTANT_ARGS}

0 commit comments

Comments
 (0)