1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-16 03:42:44 +03:00
tiny-cloud/etc/init.d/tiny-cloud
Jake Buchholz Göktürk 8ffdca9786 Introducing Tiny Cloud!
2022-01-29 22:27:34 +00:00

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 $?
}