mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Temporary transition Docker init (#34135)
This commit is contained in:
parent
328cfe86b1
commit
f49831c03b
23
rootfs/init
Executable file
23
rootfs/init
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/execlineb -S0
|
||||
|
||||
##
|
||||
## load default PATH (the same that Docker includes if not provided) if it doesn't exist,
|
||||
## then go ahead with stage1.
|
||||
## this was motivated due to this issue:
|
||||
## - https://github.com/just-containers/s6-overlay/issues/108
|
||||
##
|
||||
|
||||
/bin/importas -D /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH PATH
|
||||
export PATH ${PATH}
|
||||
|
||||
##
|
||||
## Skip further init if the user has a given CMD.
|
||||
## This is to prevent Home Assistant from starting twice if the user
|
||||
## decided to override/start via the CMD.
|
||||
##
|
||||
|
||||
ifelse { s6-test $# -ne 0 }
|
||||
{
|
||||
$@
|
||||
}
|
||||
/etc/s6/init/init-stage1 $@
|
Loading…
x
Reference in New Issue
Block a user