forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary transition Docker init (home-assistant#34135)
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $@ |