Update mm-scripts.sh

This commit is contained in:
2023-04-22 20:55:43 -05:00
parent c7c0241c54
commit 20d43c5d9a

View File

@@ -463,10 +463,12 @@ MMSTOP(){
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
for srvc in "${!MM_SERVICES[@]}"; do for srvc in "${!MM_SERVICES[@]}"; do
if [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then if [[ ${srvc} != *"qbittorrent"* ]] && [[ ${srvc} != *"vpn"* ]] && [[ ${srvc} != *"wireguard"* ]]; then
/bin/systemctl stop ${srvc} >/dev/null 2>&1 & /bin/systemctl stop ${srvc} >/dev/null 2>&1 &
fi fi
done done
sleep 2s
/bin/systemctl stop qbittorrent
echo -e "${idsCL[Green]}Done${idsCL[Default]}" echo -e "${idsCL[Green]}Done${idsCL[Default]}"
msg="Waiting for Services to stop" msg="Waiting for Services to stop"