From f9266827c9f6c605ed4c114c128119b9f9c6de2d Mon Sep 17 00:00:00 2001 From: mercury Date: Fri, 3 Jan 2025 17:08:28 +0400 Subject: [PATCH] ability to install the desired version --- readme.md | 2 +- scripts/init.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index df15c42..2d5b45c 100644 --- a/readme.md +++ b/readme.md @@ -16,5 +16,5 @@ environment: ubuntu 22.04/24.04, debian 11/12 ### Install: ```shell -wget -O- https://raw.githubusercontent.com/mercurykd/vpnbot/master/scripts/init.sh | sh -s YOUR_TELEGRAM_BOT_KEY +wget -O- https://raw.githubusercontent.com/mercurykd/vpnbot/master/scripts/init.sh | sh -s YOUR_TELEGRAM_BOT_KEY master ``` diff --git a/scripts/init.sh b/scripts/init.sh index 2b24676..1c45520 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -1,3 +1,4 @@ +TAG="${2:-master}" apt update apt install -y \ ca-certificates \ @@ -13,6 +14,7 @@ apt install -y \ curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh git clone https://github.com/mercurykd/vpnbot.git cd ./vpnbot +git checkout $TAG echo " '$1'];" > ./app/config.php