Copy config to correct location on start

This commit is contained in:
tobbenb 2016-11-17 20:10:51 +01:00
parent b7d8a893d7
commit f26f9b65de

View File

@ -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