Update mm-scripts.sh
This commit is contained in:
@@ -222,11 +222,11 @@ MMSTART(){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
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]}"
|
||||||
echo
|
echo
|
||||||
if [ "${1}" == "start" ]; then
|
if [ "${1}" == "start" ]; then
|
||||||
#echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
|
#echo -e "${idsCL[LightCyan]}It may take a couple of minutes before all services fully start${idsCL[Default]}"
|
||||||
@@ -264,7 +264,7 @@ MMSTOP(){
|
|||||||
#for srvc in "${SERVICES_CHECK[@]}"; do
|
#for srvc in "${SERVICES_CHECK[@]}"; do
|
||||||
for i in "${!NM_SERVICES[@]}"; do
|
for i in "${!NM_SERVICES[@]}"; do
|
||||||
srvc=${NM_SERVICES[$i]}
|
srvc=${NM_SERVICES[$i]}
|
||||||
if [[ ${i} != *"vpn"* ]]; then
|
if [[ ${i} != *"vpn"* ]] && [[ ${i} != *"wireguard"* ]]; then
|
||||||
/bin/systemctl stop ${i} &
|
/bin/systemctl stop ${i} &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user