From eb0601c2f185cbc0f67dd83f90f2eeed0ae420f2 Mon Sep 17 00:00:00 2001 From: quindecim Date: Fri, 9 Apr 2021 16:51:29 +0200 Subject: [PATCH] [CONFIG] - Use the emulated path for the config. files --- customize.sh | 6 +++--- service.sh | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/customize.sh b/customize.sh index d38c418..6a3815e 100644 --- a/customize.sh +++ b/customize.sh @@ -27,7 +27,7 @@ mkdir -p $MODPATH/system/bin # Create the path for the configuration files ui_print "* Creating the config. path." -mkdir -p /data/media/0/dnscrypt-proxy +mkdir -p /storage/emulated/0/dnscrypt-proxy # Copy the binary files into the right folder if [ -f "$BINARY_PATH" ]; then @@ -38,7 +38,7 @@ else fi # Backup an existing config file before proceed -CONFIG_FILE="/data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml" +CONFIG_FILE="/storage/emulated/0/dnscrypt-proxy/dnscrypt-proxy.toml" if [ -f "$CONFIG_FILE" ]; then ui_print "* Backing up the existing config. file before proceed." @@ -48,7 +48,7 @@ fi # Copy the configuration files into the right folder if [ -d "$CONFIG_PATH" ]; then ui_print "* Copying the configuration files into the dnscrypt-proxy folder." - cp -af $CONFIG_PATH/* /data/media/0/dnscrypt-proxy/ + cp -af $CONFIG_PATH/* /storage/emulated/0/dnscrypt-proxy/ else abort "Configuration file (.toml) is missing!" fi diff --git a/service.sh b/service.sh index 3199d37..808ca7d 100644 --- a/service.sh +++ b/service.sh @@ -7,7 +7,5 @@ MODDIR=${0%/*} while ! [ `pgrep -x dnscrypt-proxy` ] ; do - $MODDIR/system/bin/dnscrypt-proxy -config /data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml && sleep 15; + $MODDIR/system/bin/dnscrypt-proxy -config /storage/emulated/0/dnscrypt-proxy/dnscrypt-proxy.toml && sleep 15; done - -