File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,20 @@ fn_alert_update() {
107
107
alertcolourdec=" 52480"
108
108
}
109
109
110
+ fn_alert_update_request () {
111
+ fn_script_log_info " Sending alert: ${selfname} has requested an update and needs to be restarted."
112
+ alertaction=" Updating"
113
+ alertemoji=" 🎉"
114
+ alertsound=" 1"
115
+ alertmessage=" ${selfname} has requested an update and needs to be restarted."
116
+ # Blue
117
+ alertcolourhex=" #1e90ff"
118
+ alertcolourdec=" 2003199"
119
+ }
120
+
110
121
fn_alert_check_update () {
111
122
fn_script_log_info " Sending alert: ${gamename} update available: ${remotebuildversion} "
112
- alertaction=" Checked for Update"
123
+ alertaction=" Update available "
113
124
alertemoji=" 🎉"
114
125
alertsound=" 1"
115
126
alertmessage=" ${gamename} update available: ${remotebuildversion} "
@@ -199,6 +210,8 @@ elif [ "${alert}" == "test" ]; then
199
210
fn_alert_test
200
211
elif [ " ${alert} " == " update" ]; then
201
212
fn_alert_update
213
+ elif [ " ${alert} " == " update-request" ]; then
214
+ fn_alert_update_request
202
215
elif [ " ${alert} " == " check-update" ]; then
203
216
fn_alert_check_update
204
217
elif [ " ${alert} " == " config" ]; then
Original file line number Diff line number Diff line change @@ -153,10 +153,10 @@ fn_monitor_check_update_source() {
153
153
fn_script_log_info " Checking update: CHECKING"
154
154
fn_print_ok " Checking update: "
155
155
fn_print_ok_eol_nl
156
- fn_script_log_info " Checking update: Monitor is restarting ${selfname} to apply update"
157
- alert=" update"
156
+ fn_script_log_info " Checking update: ${selfname} has requested an update and needs to be restarted "
157
+ alert=" update-request "
158
158
alert.sh
159
- command_restart .sh
159
+ command_update .sh
160
160
core_exit.sh
161
161
fi
162
162
fi
You can’t perform that action at this time.
0 commit comments