diff --git a/mm-scripts.sh b/mm-scripts.sh index 30dc171..0274eb6 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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;;