From 28810406052c8c7db0f9ddbe4d0a8592f49a9141 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 12 Feb 2022 21:49:02 -0600 Subject: [PATCH] vpn-commands --- defaults.inc | 4 ++++ mm-scripts.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 7c62fa4..8645ed9 100755 --- a/defaults.inc +++ b/defaults.inc @@ -12,3 +12,7 @@ NM_SERVICES['jackett']='Jackett (Torrent Indexing Manager)' 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' \ No newline at end of file diff --git a/mm-scripts.sh b/mm-scripts.sh index ce92386..850b773 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -35,7 +35,7 @@ MMSTART(){ fi echo echo -en "${idsCL[LightCyan]}${mmsv} VPN Tunnel... ${idsCL[Default]}" - /bin/systemctl start openvpn + `${VPN_START}` checked=false cc=0 until [ "${checked}" = "" ]; do @@ -111,7 +111,7 @@ MMSTOP(){ echo -e "${idsCL[Green]} done${idsCL[Default]}" echo echo -en "${idsCL[LightCyan]}${mmsv} VPN Tunnel... ${idsCL[Default]}" - /bin/systemctl stop openvpn + `${VPN_STOP}` echo -e "${idsCL[Green]} done${idsCL[Default]}" echo echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}"