Update mm-scripts.sh
This commit is contained in:
@@ -329,8 +329,17 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
|
||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||
[ "$(systemctl is-active ${srvc})" != "active" ] && /bin/systemctl restart ${srvc}
|
||||
|
||||
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ] && [ "${1}" == "check" ]; then
|
||||
done
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
|
||||
echo
|
||||
msg="Waiting for Services to Start"
|
||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||
|
||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||
if [ "${MM_SERVICE_PORTS[${srvc}]}" != "" ]; then
|
||||
checkport=$(lsof -Pi :${MM_SERVICE_PORTS[${srvc}]} -sTCP:LISTEN -t)
|
||||
|
||||
tryupdate=false
|
||||
|
||||
Reference in New Issue
Block a user