From f26f9b65de9832bd9b684da85fbfe000f54ad2a7 Mon Sep 17 00:00:00 2001 From: tobbenb Date: Thu, 17 Nov 2016 20:10:51 +0100 Subject: [PATCH] Copy config to correct location on start --- root/etc/cont-init.d/30-config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index bec97ed..16cb17c 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -1,5 +1,9 @@ #!/usr/bin/with-contenv bash +# copy config from /config to root +[[ -e /config/ddclient.conf ]] && \ + cp /config/ddclient.conf /ddclient.conf + # copy default config if not present in /config [[ ! -e /config/ddclient.conf ]] && \ cp /defaults/ddclient.conf /config