Update init.sh
This commit is contained in:
parent
24661c758e
commit
e7d32678ac
4
init.sh
4
init.sh
@ -9,12 +9,16 @@ cd /opt/go
|
||||
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
|
||||
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
|
||||
sleep 2
|
||||
source /etc/profile
|
||||
# if the go version does not show, then update the session
|
||||
|
||||
#Install amnezia-go
|
||||
git clone https://github.com/amnezia-vpn/amneziawg-go.git /opt/amnezia-go
|
||||
cd /opt/amnezia-go
|
||||
sleep 1
|
||||
source /etc/profile
|
||||
sleep 1
|
||||
make
|
||||
#copy to amneziawg-go
|
||||
cp /opt/amnezia-go/amneziawg-go /usr/bin/amneziawg-go
|
||||
|
||||
Loading…
Reference in New Issue
Block a user