Merge pull request #2 from tobbenb/cpconf

Copy config to correct location on start
This commit is contained in:
tobbenb 2016-11-17 20:16:03 +01:00 committed by GitHub
commit 09a2c678bf

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