|
@@ -28,14 +28,17 @@ host=$(hostname -s)
|
|
|
ip_list=(2 8 18 88 188 118 158 198 168 186)
|
|
|
|
|
|
|
|
|
-if [ $host == "debian" ]; then
|
|
|
+if [ ! -f '/usr/bin/curl' ]; then
|
|
|
apt update && apt install -y curl
|
|
|
fi
|
|
|
serverip=$(curl -4 icanhazip.com)
|
|
|
|
|
|
|
|
|
-apt -y install qrencode
|
|
|
+if [ ! -f '/usr/bin/qrencode' ]; then
|
|
|
+ apt -y install qrencode
|
|
|
+fi
|
|
|
|
|
|
+
|
|
|
wget -O ~/wgmtu https://raw.githubusercontent.com/hongwenjun/vps_setup/master/Wireguard/wgmtu.sh
|
|
|
|
|
|
|
|
@@ -161,7 +164,9 @@ echo ""
|
|
|
|
|
|
|
|
|
EOF
|
|
|
-bash ~/wg5
|
|
|
+
|
|
|
+
|
|
|
+bash ~/wg5
|
|
|
|
|
|
|
|
|
sed -i "s/# python -m/python -m/g" ~/wg5
|