This commit is contained in:
2022-03-26 18:59:15 -05:00
parent fe11511bf4
commit 287ce151c7
2 changed files with 5 additions and 3 deletions

View File

@@ -23,4 +23,6 @@ if [[ $(/sbin/ip -o -4 addr list ens160 | awk '{print $4}' | cut -d/ -f1) == *"1
else
VPN_START=(/bin/systemctl start openvpn)
VPN_STOP=(/bin/systemctl stop openvpn)
fi
fi
echo "HERE: ${VPN_START} - ${VPN_INTERFACE}"

View File

@@ -26,7 +26,7 @@ MMSTART(){
if [ "${action}" = "start" ]; then
mmsv='Starting'
echo -e "${idsCL[Green]}Starting System... ${idsCL[Default]}"
"${VPN_START[@]}"
#"${VPN_START[@]}"
elif [ "${action}" = "stop" ]; then
mmsv='Stopping'
echo -e "${idsCL[Green]}Stopping System... ${idsCL[Default]}"
@@ -71,7 +71,7 @@ MMSTART(){
echo -e "${idsCL[Green]} done${idsCL[Default]}"
echo -en "${idsCL[LightCyan]}${mmsv} Services... ${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl start ${srvc}
#/bin/systemctl start ${srvc}
done
echo -e "${idsCL[Green]} done${idsCL[Default]}"
if [ "${action}" == "start" ]; then