mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-14 19:02:45 +03:00
28 lines
418 B
Bash
Executable File
28 lines
418 B
Bash
Executable File
#!/sbin/openrc-run
|
|
# vim:set ts=8 noet ft=sh:
|
|
|
|
description="Tiny Cloud Bootstrap - final phase"
|
|
|
|
: "${LIBDIR:=$PREFIX/lib}"
|
|
|
|
depend() {
|
|
after *
|
|
provide cloud-final
|
|
}
|
|
|
|
start() {
|
|
. "$LIBDIR"/tiny-cloud/init-final
|
|
|
|
is_bootstrapped && return 0
|
|
|
|
if is_userdata_script; then
|
|
ebegin "Executing UserData Script"
|
|
run_userdata
|
|
eend $?
|
|
fi
|
|
|
|
ebegin "Marking Instance Bootstrap Complete"
|
|
bootstrap_complete
|
|
eend $?
|
|
}
|