Update mm-scripts.sh
This commit is contained in:
@@ -43,6 +43,7 @@ MMSTART(){
|
||||
SENDNOTICE "Starting Media Management Systems" ""
|
||||
echo "$(date) - Starting Media Management system - (fresh start)" >> $logfile
|
||||
echo -e "${idsCL[LightCyan]}Fresh startup${idsCL[Default]}"
|
||||
sleep 2m
|
||||
|
||||
elif [ "${1}" = "check" ] && [ "$(ip link | grep "${VPN_INTERFACE}")" = "" ] && [ -f ${MMFOLDER}/mm.vpn* ]; then
|
||||
GOFORSTART=true;
|
||||
@@ -117,7 +118,6 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
"${VPN_START[@]}" >/dev/null 2>&1 &
|
||||
sleep 30s
|
||||
rm -f ${MMFOLDER}/mm.stop*
|
||||
rm -f ${MMFOLDER}/mm.stop.checking
|
||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||
exit 1
|
||||
elif [ -f ${MMFOLDER}/mm.vpn.fail2 ]; then
|
||||
@@ -136,7 +136,6 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
"${VPN_START[@]}" >/dev/null 2>&1 &
|
||||
sleep 30s
|
||||
rm -f ${MMFOLDER}/mm.stop*
|
||||
rm -f ${MMFOLDER}/mm.stop.checking
|
||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user