Skip to content

Commit

Permalink
update openvpn3 installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 committed Dec 16, 2024
1 parent 1cdbcf6 commit 92a1b60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ansible-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v2

# Taken here: https://github.com/dbritto-dev/openvpn3-action/blob/main/action.yml#L25
# Taken here: https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux
- name: Install OpenVPN
run: |
export DISTRO=$(lsb_release --codename | cut -f2)
sudo apt-get install -y apt-transport-https
sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
sudo apt-key add openvpn-repo-pkg-key.pub
sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list
sudo apt-get install -y apt-transport-https curl
sudo mkdir -p /etc/apt/keyrings
sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg > /etc/apt/keyrings/openvpn.asc
sudo echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list
sudo apt-get update -y && sudo apt-get install -y openvpn3
- name: Setup VPN config
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ansible-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v2

# Taken here: https://github.com/dbritto-dev/openvpn3-action/blob/main/action.yml#L25
# Taken here: https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux
- name: Install OpenVPN
run: |
export DISTRO=$(lsb_release --codename | cut -f2)
sudo apt-get install -y apt-transport-https
sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
sudo apt-key add openvpn-repo-pkg-key.pub
sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list
sudo apt-get install -y apt-transport-https curl
sudo mkdir -p /etc/apt/keyrings
sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg > /etc/apt/keyrings/openvpn.asc
sudo echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list
sudo apt-get update -y && sudo apt-get install -y openvpn3
- name: Setup VPN config
Expand Down

0 comments on commit 92a1b60

Please sign in to comment.