vpn-commands

This commit is contained in:
2022-02-12 21:49:02 -06:00
parent 1c1373e65f
commit 2881040605
2 changed files with 6 additions and 2 deletions

View File

@@ -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'

View File

@@ -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]}"