mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 03:42:44 +03:00
openrc-run auto-loads /etc/conf.d/tiny-ec2-bootstrap
This commit is contained in:
parent
ba46c43caa
commit
8b933685a4
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
description="Provides EC2 cloud bootstrap"
|
description="Provides EC2 cloud bootstrap"
|
||||||
|
|
||||||
|
# override in /etc/conf.d/tiny-ec2-bootstrap
|
||||||
|
EC2_USER=${EC2_USER:-alpine}
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
provide cloud-final
|
provide cloud-final
|
||||||
@ -64,10 +67,6 @@ start() {
|
|||||||
# Don't bootstrap if the host has already been bootstrapped
|
# Don't bootstrap if the host has already been bootstrapped
|
||||||
[ -f "/var/lib/cloud/.bootstrap-complete" ] && return 0
|
[ -f "/var/lib/cloud/.bootstrap-complete" ] && return 0
|
||||||
|
|
||||||
# load configuration, set defaults
|
|
||||||
[ -f "/etc/conf.d/tiny-ec2-bootstrap" ] && . /etc/conf.d/tiny-ec2-bootstrap
|
|
||||||
EC2_USER=${EC2_USER:-alpine}
|
|
||||||
|
|
||||||
[ -d "/var/lib/cloud" ] || mkdir -p /var/lib/cloud
|
[ -d "/var/lib/cloud" ] || mkdir -p /var/lib/cloud
|
||||||
|
|
||||||
ebegin "Disabling root password"; _disable_password root; eend $?
|
ebegin "Disabling root password"; _disable_password root; eend $?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user