summarylogtreecommitdiffstats
path: root/microsoft-azure-vpn-client-bin.install
blob: 4f9012933f610af012f0ed5ddb29b7541ee57aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
  setcap cap_net_admin+eip /opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient

  cat << EOF
The original Azure VPN Debian/Ubuntu package assumes users that want to access the VPN
are part of the "sudo" group.

Default Arch installs lack the "sudo" group, so we've changed the package to allow
VPN access to users that are in the "network" group.

Run the following command to add users to that group:

sudo usermod -aG network \$USERNAME
EOF
}

post_upgrade() {
  setcap cap_net_admin+eip /opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient
}