Skip to content

Commit 753eb2a

Browse files
committed
feat: moved last-updated.lock file
moved last-updated.lock to ensure it doesn't force a reboot on monitor
1 parent 79dc5f7 commit 753eb2a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lgsm/modules/update_fctr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ fn_update_compare() {
9393
fn_script_log_info "${localbuild} > ${remotebuildversion}"
9494

9595
if [ "${commandname}" == "UPDATE" ]; then
96+
date +%s > "${lockdir}/last-updated.lock"
9697
unset updateonstart
9798
check_status.sh
9899
# If server stopped.
@@ -120,7 +121,6 @@ fn_update_compare() {
120121
fn_firstcommand_reset
121122
fi
122123
unset exitbypass
123-
date +%s > "${lockdir}/last-updated.lock"
124124
alert="update"
125125
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
126126
alert="check-update"

lgsm/modules/update_mc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ fn_update_compare() {
105105
fn_script_log_info "${localbuild} > ${remotebuildversion}"
106106

107107
if [ "${commandname}" == "UPDATE" ]; then
108+
date +%s > "${lockdir}/last-updated.lock"
108109
unset updateonstart
109110
check_status.sh
110111
# If server stopped.
@@ -132,7 +133,6 @@ fn_update_compare() {
132133
fn_firstcommand_reset
133134
fi
134135
unset exitbypass
135-
date +%s > "${lockdir}/last-updated.lock"
136136
alert="update"
137137
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
138138
alert="check-update"

lgsm/modules/update_mcb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ fn_update_compare() {
111111
fn_script_log_info "${localbuild} > ${remotebuildversion}"
112112

113113
if [ "${commandname}" == "UPDATE" ]; then
114+
date +%s > "${lockdir}/last-updated.lock"
114115
unset updateonstart
115116
check_status.sh
116117
# If server stopped.
@@ -138,7 +139,6 @@ fn_update_compare() {
138139
fn_firstcommand_reset
139140
fi
140141
unset exitbypass
141-
date +%s > "${lockdir}/last-updated.lock"
142142
alert="update"
143143
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
144144
alert="check-update"

lgsm/modules/update_pmc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ fn_update_compare() {
115115
fn_script_log_info "${localbuild} > ${remotebuildversion}"
116116

117117
if [ "${commandname}" == "UPDATE" ]; then
118+
date +%s > "${lockdir}/last-updated.lock"
118119
unset updateonstart
119120
check_status.sh
120121
# If server stopped.
@@ -142,7 +143,6 @@ fn_update_compare() {
142143
fn_firstcommand_reset
143144
fi
144145
unset exitbypass
145-
date +%s > "${lockdir}/last-updated.lock"
146146
alert="update"
147147
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
148148
alert="check-update"

lgsm/modules/update_ut99.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ fn_update_compare() {
9191
fn_script_log_info "${localbuild} > ${remotebuildversion}"
9292

9393
if [ "${commandname}" == "UPDATE" ]; then
94+
date +%s > "${lockdir}/last-updated.lock"
9495
unset updateonstart
9596
check_status.sh
9697
# If server stopped.
@@ -118,7 +119,6 @@ fn_update_compare() {
118119
fn_firstcommand_reset
119120
fi
120121
unset exitbypass
121-
date +%s > "${lockdir}/last-updated.lock"
122122
alert="update"
123123
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
124124
alert="check-update"

lgsm/modules/update_vints.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ fn_update_compare() {
9898
fn_script_log_info "${localbuild} > ${remotebuildversion}"
9999

100100
if [ "${commandname}" == "UPDATE" ]; then
101+
date +%s > "${lockdir}/last-updated.lock"
101102
unset updateonstart
102103
check_status.sh
103104
# If server stopped.
@@ -125,7 +126,6 @@ fn_update_compare() {
125126
fn_firstcommand_reset
126127
fi
127128
unset exitbypass
128-
date +%s > "${lockdir}/last-updated.lock"
129129
alert="update"
130130
elif [ "${commandname}" == "CHECK-UPDATE" ]; then
131131
alert="check-update"

0 commit comments

Comments
 (0)