Update mm-scripts.sh

This commit is contained in:
2023-02-25 18:28:34 -06:00
parent 1265f9acaa
commit 544eb0908c

View File

@@ -275,7 +275,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
fi
if [ "${2}" != "vpn" ]; then
if [ "${2}" != "vpn" ] && [ ! -f ${MMFOLDER}/mm.noservices ]; then
echo -en "${idsCL[LightCyan]}${mmsv} Services :${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl start ${srvc}
@@ -283,6 +283,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
echo -e "${idsCL[Green]} done${idsCL[Default]}"
else
echo -e "${idsCL[LightCyan]}Skipping ${mmsv} Services ${idsCL[Default]}"
touch ${MMFOLDER}/mm.noservices
fi
echo