linutil/core/tabs/applications-setup/developer-tools/ngrok.sh
Jeevitha Kannan K S 16785ca86c
Rename files from application-setup.sh -> application.sh
The purpose of all files inside the directory is to setup an application no need to mention it in the file name
2024-11-08 23:30:01 +05:30

16 lines
411 B
Bash

#!/bin/sh -e
. ../../common-script.sh
installNgrok() {
if ! command_exists ngrok; then
printf "%b\n" "${YELLOW}Installing Ngrok...${RC}"
curl -sSLO https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | "$ESCALATION_TOOL" tar -xz -C /usr/local/bin
else
printf "%b\n" "${GREEN}Ngrok is already installed.${RC}"
fi
}
checkEnv
checkEscalationTool
installNgrok