Skip to content

Commit

Permalink
Merge pull request #191 from ExtremeFiretop/ExtremeFiretop-patch-1
Browse files Browse the repository at this point in the history
Disable Email Notifications for Available Updates from Node
  • Loading branch information
Martinski4GitHub committed Apr 14, 2024
2 parents f19fe27 + 2159abb commit 6b1be75
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions MerlinAU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
###################################################################
set -u

readonly SCRIPT_VERSION=1.1.0
readonly SCRIPT_VERSION=1.1.1
readonly SCRIPT_NAME="MerlinAU"

##-------------------------------------##
Expand Down Expand Up @@ -3008,7 +3008,7 @@ _Set_FW_UpdateCronSchedule_()
}

##------------------------------------------##
## Modified by ExtremeFiretop [2024-Jan-26] ##
## Modified by ExtremeFiretop [2024-Apr-13] ##
##------------------------------------------##
_CheckNewUpdateFirmwareNotification_()
{
Expand Down Expand Up @@ -3043,7 +3043,10 @@ _CheckNewUpdateFirmwareNotification_()
fwNewUpdateNotificationDate="$(date +"$FW_UpdateNotificationDateFormat")"
Update_Custom_Settings FW_New_Update_Notification_Vers "$fwNewUpdateNotificationVers"
Update_Custom_Settings FW_New_Update_Notification_Date "$fwNewUpdateNotificationDate"
_SendEMailNotification_ NEW_FW_UPDATE_STATUS
if "$inRouterSWmode"
then
_SendEMailNotification_ NEW_FW_UPDATE_STATUS
fi
fi
fi

Expand All @@ -3052,7 +3055,10 @@ _CheckNewUpdateFirmwareNotification_()
then
fwNewUpdateNotificationDate="$(date +"$FW_UpdateNotificationDateFormat")"
Update_Custom_Settings FW_New_Update_Notification_Date "$fwNewUpdateNotificationDate"
_SendEMailNotification_ NEW_FW_UPDATE_STATUS
if "$inRouterSWmode"
then
_SendEMailNotification_ NEW_FW_UPDATE_STATUS
fi
fi
return 0
}
Expand Down

0 comments on commit 6b1be75

Please sign in to comment.