From 62c5e02e634365d8749258a1cd78d4d76dd26fe8 Mon Sep 17 00:00:00 2001 From: George Daniel <51092143+lindroidux@users.noreply.github.com> Date: Thu, 13 Jun 2019 08:55:54 +0000 Subject: [PATCH] updated option.sh updated option.sh --- common/option.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/option.sh b/common/option.sh index e6d6d55..f31eeb3 100755 --- a/common/option.sh +++ b/common/option.sh @@ -1,17 +1,13 @@ CONFIG_FILE=/data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml - if [ -f "$CONFIG_FILE" ]; then - + if ! [ -f "$CONFIG_FILE" ]; then # ui_print "* Backing up config file" # cp -afv $CONFIG_FILE $TMPDIR # ui_print "* Restoring config files" # cp -af $TMPDIR/dnscrypt-proxy.toml $CONFIG_FILE - - else - + cp -afv /data/media/0/dnscrypt-proxy/example-dnscrypt-proxy.toml $CONFIG_FILE sed -i -e 's/127.0.0.1:53/127.0.0.1:5354/g' $CONFIG_FILE sed -i -e 's/\[::1\]:53/\[::1\]:5354/g' $CONFIG_FILE - fi