don't override config file if exist

This commit is contained in:
bluemeda 2018-03-07 00:51:51 +07:00
parent 6323fd1cd3
commit e5d3937d46
1 changed files with 5 additions and 1 deletions

View File

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