Update mm-scripts.sh

This commit is contained in:
2023-02-25 18:20:08 -06:00
parent 1699b99292
commit 6b25a6642d

View File

@@ -275,12 +275,15 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf
fi
echo -en "${idsCL[LightCyan]}${mmsv} Services... ${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl start ${srvc}
done
echo -e "${idsCL[Green]} done${idsCL[Default]}"
if [ "${2}" != "vpn" ]; then
echo -en "${idsCL[LightCyan]}${mmsv} Services... ${idsCL[Default]}"
for srvc in "${SERVICES_CHECK[@]}"; do
/bin/systemctl start ${srvc}
done
echo -e "${idsCL[Green]} done${idsCL[Default]}"
else
echo -e "${idsCL[LightCyan]}Skipping ${mmsv} Services... ${idsCL[Default]}"
fi
echo
if [ "${1}" == "start" ] || [ "${1}" == "restart" ]; then
@@ -521,7 +524,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
fi
touch ${MMFOLDER}/mm.stop
[ "${action}" = "check" ] && touch ${MMFOLDER}/mm.stop.checking
MMSTART ${action};;
MMSTART ${action} ${2};;
stop)
MMSTOP;;