mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 03:42:44 +03:00
23 lines
357 B
Bash
Executable File
23 lines
357 B
Bash
Executable File
#!/sbin/openrc-run
|
|
# vim:set ts=8 noet ft=sh:
|
|
|
|
description="Tiny Cloud Bootstrap - main phase"
|
|
|
|
depend() {
|
|
need net
|
|
before sshd
|
|
}
|
|
|
|
start() {
|
|
source /lib/tiny-cloud/init-main
|
|
|
|
is_bootstrapped && return 0
|
|
|
|
ebegin "Setting Instance Hostname"
|
|
set_hostname
|
|
eend $?
|
|
|
|
ebegin "Installing SSH Keys for $CLOUD_USER User"
|
|
set_ssh_keys "$CLOUD_USER"
|
|
eend $?
|
|
} |