bug fix
This commit is contained in:
parent
9e617c549a
commit
6f41757ddc
13
config.sh
13
config.sh
|
@ -105,7 +105,13 @@ install_dnscrypt_proxy(){
|
||||||
BINARY_PATH=$INSTALLER/binary/dnscrypt-proxy-arm64
|
BINARY_PATH=$INSTALLER/binary/dnscrypt-proxy-arm64
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CONFIG_FILE=$MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml
|
||||||
CONFIG_PATH=$INSTALLER/config
|
CONFIG_PATH=$INSTALLER/config
|
||||||
|
|
||||||
|
if [ ! -f "$CONFIG_FILE"]; then
|
||||||
|
cp $CONFIG_FILE $TMPDIR
|
||||||
|
fi
|
||||||
|
|
||||||
unzip -o "$ZIP" 'config/*' 'binary/*' -d $INSTALLER 2>/dev/null
|
unzip -o "$ZIP" 'config/*' 'binary/*' -d $INSTALLER 2>/dev/null
|
||||||
|
|
||||||
ui_print "* Creating binary path"
|
ui_print "* Creating binary path"
|
||||||
|
@ -128,8 +134,11 @@ install_dnscrypt_proxy(){
|
||||||
abort "Config file is missing!"
|
abort "Config file is missing!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml"]; then
|
if [ ! -f $CONFIG_FILE]; then
|
||||||
ui_print "copying config files"
|
ui_print "copying config files"
|
||||||
cp -af $CONFIG_PATH/example-dnscrypt-proxy.toml $MODPATH/system/etc/dnscrypt-proxy
|
cp -af $CONFIG_PATH/example-dnscrypt-proxy.toml $MODPATH/system/etc/dnscrypt-proxy/dnscrypt-proxy.toml
|
||||||
|
else
|
||||||
|
cp -af $TMPDIR/dnscrypt-proxy.toml $MODPATH/system/etc/dnscrypt-proxy.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue