File tree Expand file tree Collapse file tree
rootfs/container/base/functions/container/available Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,13 +302,33 @@ prepare_service() {
302302 case "$(dirname "$0")" in
303303 "/var/run/s6/etc/cont-init.d" | "/etc/cont-init.d" | /container/base/init/init* | /container/init/init* | . )
304304 set -a
305- get_defaults "$1"
306- get_functions "$1"
305+ case "${1,,}" in
306+ "defaults" )
307+ get_defaults
308+ ;;
309+ "functions" )
310+ get_functions
311+ ;;
312+ "single" )
313+ get_defaults single
314+ get_functions single
315+ ;;
316+ "single-defaults" )
317+ get_defaults single
318+ ;;
319+ "single-functions" )
320+ get_functions single
321+ ;;
322+ * )
323+ get_defaults "$1"
324+ get_functions "$1"
325+ ;;
326+ esac
307327 set +a
308328 ;;
309329 *)
310- case "${1,,{ }" in
311- "both " | "all " )
330+ case "${1,,}" in
331+ "all " | "both " )
312332 get_defaults "$2"
313333 get_functions "$2"
314334 ;;
@@ -318,6 +338,16 @@ prepare_service() {
318338 "functions" )
319339 get_functions "$2"
320340 ;;
341+ "single" )
342+ get_defaults single
343+ get_functions single
344+ ;;
345+ "single-defaults" )
346+ get_defaults single
347+ ;;
348+ "single-functions" )
349+ get_functions single
350+ ;;
321351 esac
322352 ;;
323353 esac
You can’t perform that action at this time.
0 commit comments