20 lines
740 B
Plaintext
20 lines
740 B
Plaintext
#!/usr/bin/env bashio
|
|
# ==============================================================================
|
|
# Home Assistant Community Add-on: Cadvisor
|
|
# Run the add-on
|
|
# ==============================================================================
|
|
#
|
|
# WHAT IS THIS FILE?!
|
|
#
|
|
# This add-on runs in the host PID namespace, therefore it cannot
|
|
# use the regular S6-Overlay; hence this add-on uses a "old school" script
|
|
# to run; with a couple of "hacks" to make it work.
|
|
# ==============================================================================
|
|
|
|
# Start
|
|
echo "[Custom Init] S6 Overlay /init bypassed due to host_pid: true."
|
|
echo "[Custom Init] Executing CMD: $@"
|
|
|
|
# This will execute whatever you've set as CMD in your Dockerfile
|
|
exec "$@"
|