melonvpn-original-cs/install-dependencies
2020-09-22 23:10:16 +01:00

23 lines
627 B
Bash
Executable File

#!/bin/bash
if [ "$(go version | head -c 13)" == "go version go" ]; then
echo "Assuming go is installed"
if [ -f /usr/bin/simple-vpn ]; then
echo "Found \"/usr/bin/simple-vpn\" assuming it is installed correctly"
else
echo "Cloning simple-vpn"
git clone https://github.com/skx/simple-vpn
cd simple-vpn
echo "Installing simple-vpn"
go build
sudo cp ./simple-vpn /usr/bin/ -i
cd ..
echo "Cleaning up"
rm simple-vpn -rf
echo "Components installed..."
fi
else
echo "Please install golang before continuing"
exit
fi
echo "Run \"./build\" to continue with installing MelonVPN"