SCRIPT | Install-NordVPN-Latest

ByDan Ashley

SCRIPT | Install-NordVPN-Latest

Install NordVPN

Summary

This script will install the latest version of NordVPN.


Script Content

#!/bin/bash
cd "/Library/Application Support/JAMF/tmp"

# Update variables. These shouldn't need to change for each update
pkgname="NordVPN.pkg"
pkglink="https://downloads.nordcdn.com/apps/macos/generic/NordVPN-OpenVPN/latest/NordVPN.pkg"
apptoupdaterunningname="NordVPN"

# Download PKG
curl -L -o "$pkgname" "$pkglink"

sleep 10

# Kill the app if it is running
killall -Kill "$apptoupdaterunningname"

# Install PKG
sudo installer -pkg $pkgname -target /

# Remove the downloaded PKG
rm $pkgname

# Clear out the used variables
unset pkgname
unset pkglink
unset apptoupdaterunningname
exit 0

Concluding Comments

This script will install the latest version of the NordVPN application.

About the author

Dan Ashley administrator