Update init.sh

This commit is contained in:
Bkeenke 2024-02-26 00:15:06 +03:00 committed by GitHub
parent 24661c758e
commit e7d32678ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,12 +9,16 @@ cd /opt/go
wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
sleep 2
source /etc/profile source /etc/profile
# if the go version does not show, then update the session # if the go version does not show, then update the session
#Install amnezia-go #Install amnezia-go
git clone https://github.com/amnezia-vpn/amneziawg-go.git /opt/amnezia-go git clone https://github.com/amnezia-vpn/amneziawg-go.git /opt/amnezia-go
cd /opt/amnezia-go cd /opt/amnezia-go
sleep 1
source /etc/profile
sleep 1
make make
#copy to amneziawg-go #copy to amneziawg-go
cp /opt/amnezia-go/amneziawg-go /usr/bin/amneziawg-go cp /opt/amnezia-go/amneziawg-go /usr/bin/amneziawg-go