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