Skip to content

Commit

Permalink
using the tag, and being more verbose during the installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Keller committed Mar 14, 2024
1 parent 0a81184 commit ab4e51f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +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
curl -s "https://raw.githubusercontent.com/guy-keller/openvpn3-qt/master/install.sh" | bash
curl -s "https://raw.githubusercontent.com/guy-keller/openvpn3-qt/1.3.1/install.sh" | bash
```

After running the commands above you are good to go.
Expand Down
10 changes: 8 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/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 "We will ask for your password to get elevated rights"
echo "We need this in order to install dependencies, and set up the app"
echo "- - - - -"

# Blowing away any previous installation
Expand All @@ -12,6 +13,7 @@ echo "- - - - -"
OS_RELEASE=$(cat /etc/os-release | grep NAME)
echo "Installing OpenVPN3-QT on: $OS_RELEASE"

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

echo "- - - - -"
# Creates the folder where the project gets checked out with the right perms
cd /opt
sudo mkdir openvpn3-qt
sudo chmod a+rw openvpn3-qt

echo "- - - - -"
# Cloning the project
git clone https://github.com/guy-keller/openvpn3-qt.git
git clone --depth=1 --branch=1.3.1 https://github.com/guy-keller/openvpn3-qt.git

echo "- - - - -"
# Set up the app locally ( creates venv and shortcut )
cd /opt/openvpn3-qt/other/
chmod +x setup-app.sh
Expand All @@ -44,3 +49,4 @@ 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!"
echo "- - - - -"
2 changes: 2 additions & 0 deletions other/setup-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ cd /opt/openvpn3-qt/
python3 -m venv venv
source venv/bin/activate

echo "- - - - -"
# Install the deps and copies the desktop shortcut
pip3 install -r requirements.txt
sudo cp other/openvpn3-qt.desktop /usr/share/applications

echo "- - - - -"
# Refresh the menu, so that the app icon is displayed
sudo update-desktop-database /usr/share/applications
sudo xdg-desktop-menu forceupdate

0 comments on commit ab4e51f

Please sign in to comment.