Skip to content

Commit

Permalink
updated install.sh script, it should now work; also updated the READM…
Browse files Browse the repository at this point in the history
…E file
  • Loading branch information
Guy Keller committed Mar 14, 2024
1 parent 6819dca commit 0a81184
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OpenVPN3-QT
============
OpenVPN3 QT Client written in Python3.
A simple OpenVPN3 Client written in Python3 & QT.

## OpenVPN 3
First and foremost, please download and install OpenVPN 3 from here:
Expand All @@ -27,9 +27,7 @@ Once you know that openvpn3 is working, give this QT client a go!

To install copy and paste the following commands in a terminal:
```shell
cd /opt && sudo mkdir openvpn3-qt && sudo chmod a+rw openvpn3-qt
git clone https://github.com/guy-keller/openvpn3-qt.git
cd openvpn3-qt && chmod +x install.sh && ./install.sh
curl -s "https://raw.githubusercontent.com/guy-keller/openvpn3-qt/master/install.sh" | bash
```

After running the commands above you are good to go.
Expand Down Expand Up @@ -57,7 +55,7 @@ UI - Connected:
Paste the following in a terminal:
```shell
sudo rm -rf /opt/openvpn3-qt/
sudo rm -rf /usr/share/applications/ovpn3-qt.desktop
sudo rm -rf /usr/share/applications/openvpn3-qt.desktop
```

### Disclaimer
Expand Down
23 changes: 19 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/bash

echo "Thanks for choosing to install OpenVPN-QT"
echo "We will ask for elevated rights to install dependencies, and configure your system"
echo "- - - - -"

# Blowing away any previous installation
sudo rm -rf /opt/openvpn3-qt/
sudo rm -rf /usr/share/applications/openvpn3-qt.desktop
sudo rm -rf /opt/openvpn3-qt/ || echo "No previous installation found - p1"
sudo rm -rf /usr/share/applications/openvpn3-qt.desktop || echo "No previous installation found - p2"
echo "- - - - -"

OS_RELEASE=$(cat /etc/os-release | grep NAME)
echo "Installing OpenVPN3-QT on: $OS_RELEASE"

# Installing deps on DEB based distros
if [[ "$OS_RELEASE" == *"Debian"* ]] || [[ "$OS_RELEASE" == *"Ubuntu"* ]]; then
Expand All @@ -20,12 +26,21 @@ if [[ "$OS_RELEASE" == *"Fedora"* ]] || [[ "$OS_RELEASE" == *"Red Hat"* ]]; then
sudo dnf install git -y
fi

# Cloning the project
# Creates the folder where the project gets checked out with the right perms
cd /opt
git clone https://github.com/guy-keller/openvpn3-qt.git
sudo mkdir openvpn3-qt
sudo chmod a+rw openvpn3-qt

# Cloning the project
git clone https://github.com/guy-keller/openvpn3-qt.git

# Set up the app locally ( creates venv and shortcut )
cd /opt/openvpn3-qt/other/
chmod +x setup-app.sh
source setup-app.sh

echo "- - - - -"
echo "If you see any error messages, please do raise a bug on GitHub thanks!"
echo "Otherwise, congratulations OpenVPN3-QT has been installed!"
echo "Push the 'super' button, look for it and start using."
echo "You can now close this window, cheers!"

0 comments on commit 0a81184

Please sign in to comment.