Merge pull request #1 from lindroidux/update-install.sh

Update install.sh
This commit is contained in:
George Daniel 2019-06-12 06:09:24 +00:00 committed by GitHub
commit c7306db6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -151,13 +151,13 @@ on_install() {
CONFIG_PATH=$TMPDIR/config CONFIG_PATH=$TMPDIR/config
unzip -o "$ZIPFILE" 'config/*' 'binary/*' -d $TMPDIR 2>/dev/null unzip -o "$ZIPFILE" 'config/*' 'binary/*' -d $TMPDIR
ui_print "* Creating binary path" ui_print "* Creating binary path"
mkdir -p $MODPATH/system/bin 2>/dev/null mkdir -p $MODPATH/system/bin
ui_print "* Creating config path" ui_print "* Creating config path"
mkdir -p $MODPATH/system/etc/dnscrypt-proxy 2>/dev/null mkdir -p /data/media/0/dnscrypt-proxy
if [ -f "$BINARY_PATH" ]; then if [ -f "$BINARY_PATH" ]; then
ui_print "* Copying binary for $ARCH" ui_print "* Copying binary for $ARCH"
@ -168,7 +168,7 @@ on_install() {
if [ -d "$CONFIG_PATH" ]; then if [ -d "$CONFIG_PATH" ]; then
ui_print "* Copying example and license files" ui_print "* Copying example and license files"
cp -af $CONFIG_PATH/* $MODPATH/system/etc/dnscrypt-proxy cp -af $CONFIG_PATH/* /data/media/0/dnscrypt-proxy/
else else
abort "Config file is missing!" abort "Config file is missing!"
fi fi