diff --git a/install.sh b/install.sh index 630df18..836b43c 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ else ARCH=arm fi -ARCHIVE=ngrok-v3-stable-linux-$ARCH.zip +ARCHIVE=ngrok-v3-stable-linux-$ARCH.tgz DOWNLOAD_URL=https://bin.equinox.io/c/bNyj1mQVY4c/$ARCHIVE if [ ! $(which wget) ]; then @@ -28,11 +28,6 @@ if [ ! $(which git) ]; then exit 1 fi -if [ ! $(which unzip) ]; then - echo 'Please install zip package' - exit 1 -fi - if (( $EUID != 0 )); then echo "Please run as root" exit 1 @@ -56,7 +51,7 @@ sed -i "s//$1/g" /opt/ngrok/ngrok.yml cd /opt/ngrok echo "Downloading ngrok for $ARCH . . ." wget $DOWNLOAD_URL -unzip $ARCHIVE +tar xzf $ARCHIVE rm $ARCHIVE chmod +x ngrok