From e5d3937d4684e53980bbd54734f0d2f63c6c6104 Mon Sep 17 00:00:00 2001 From: bluemeda Date: Wed, 7 Mar 2018 00:51:51 +0700 Subject: [PATCH] don't override config file if exist --- config.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.sh b/config.sh index 7848223..36431fb 100755 --- a/config.sh +++ b/config.sh @@ -122,10 +122,14 @@ install_dnscrypt_proxy(){ fi if [ -d "$CONFIG_PATH" ]; then - ui_print "Copying config files" + ui_print "Copying example and license files" cp -af $CONFIG_PATH/* $MODPATH/system/etc/dnscrypt-proxy else abort "Config file is missing!" fi + if [ ! -f "$MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml"]; then + ui_print "copying config files" + cp -af $CONFIG_PATH/example-dnscrypt-proxy.toml $MODPATH/system/etc/dnscrypt-proxy + fi }