Files
linuxkit/alpine/packages/hostsettings/etc/init.d/hostsettings
David Sheets 1082da6d85 hostsettings: correctly install multiline /etc/sysctl.conf files
echo will destroy newlines in arguments.

Signed-off-by: David Sheets <dsheets@docker.com>
2016-04-15 10:57:32 +01:00

17 lines
363 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 && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
eend 0
}