Update defaults.inc

This commit is contained in:
2022-02-12 21:53:09 -06:00
parent 2881040605
commit 167ab195cb

View File

@@ -13,6 +13,10 @@ NM_SERVICES['qbittorrent']='qBittorrent (Torrent Downloader)'
NM_SERVICES['snap.tautulli.tautulli']='Tautulli (Plex Stats)'
NM_SERVICES['ombi']='Ombi (Download Requester)'
VPN_START='/bin/systemctl start openvpn'
VPN_STOP='/bin/systemctl stop openvpn'
if [[ $(/sbin/ip -o -4 addr list ens160 | awk '{print $4}' | cut -d/ -f1) == *"10.10.1.24"* ]]; then
VPN_START='/usr/bin/nordvpn connect'
VPN_STOP='/usr/bin/nordvpn disconnect'
else
VPN_START='/bin/systemctl start openvpn'
VPN_STOP='/bin/systemctl stop openvpn'
fi