updated option.sh

updated option.sh
This commit is contained in:
George Daniel 2019-06-13 08:55:54 +00:00 committed by GitHub
parent d429780116
commit 62c5e02e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

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