Files
linuxkit/alpine/packages/hostsettings/etc/init.d/hostsettings
Justin Cormack aa0fd62747 rename database to hostsettings
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-04-07 15:11:20 +01:00

17 lines
371 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Configuring settings from database."
depend() {
before hostname sysctl
}
start() {
ebegin "Configuring host settings from database"
mobyconfig exists etc/hostname && echo $(mobyconfig get etc/hostname) > /etc/hostname
mobyconfig exists etc/sysctl.conf && echo $(mobyconfig get etc/sysctl.conf) > /etc/sysctl.conf
eend 0
}