Skip to content

Commit 4153e98

Browse files
committed
add single-defaults single-functions to prepare_service
1 parent d1788e7 commit 4153e98

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

  • rootfs/container/base/functions/container/available

rootfs/container/base/functions/container/available/init

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)