hostsettings: correctly install multiline /etc/sysctl.conf files

echo will destroy newlines in arguments.

Signed-off-by: David Sheets <dsheets@docker.com>
This commit is contained in:
David Sheets 2016-04-15 10:57:32 +01:00
parent a49bb9a4b2
commit d99812e7d3

View File

@ -10,7 +10,7 @@ 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
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
eend 0
}