From 5e5c073f77f5f1700c885da4e36fc9f2fd3b6dfb Mon Sep 17 00:00:00 2001 From: snail007 Date: Wed, 18 Sep 2019 06:59:20 +0800 Subject: [PATCH] Update install_auto.sh --- install_auto.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install_auto.sh b/install_auto.sh index b17acd5..aa33618 100755 --- a/install_auto.sh +++ b/install_auto.sh @@ -1,15 +1,11 @@ #!/bin/bash F="proxy-admin-free_linux-amd64.tar.gz" - -if [ -e /etc/gpaf ]; then - rm -rf /etc/gpaf -fi -mkdir /etc/gpaf -cd /etc/gpaf +cd /tmp +rm -rf $F LAST_VERSION=$(curl --silent "https://api.github.com/repos/snail007/proxy_admin_free/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")') wget "https://github.com/snail007/proxy_admin_free/releases/download/${LAST_VERSION}/$F" -# #install proxy +# #install tar zxvf $F chmod +x proxy-admin-free ./proxy-admin-free uninstall >/dev/null 2>&1