Browse Source
feat: moved last-updated.lock file
moved last-updated.lock to ensure it doesn't force a reboot on monitor
pull/4319/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
6 changed files with
6 additions and
6 deletions
-
lgsm/modules/update_fctr.sh
-
lgsm/modules/update_mc.sh
-
lgsm/modules/update_mcb.sh
-
lgsm/modules/update_pmc.sh
-
lgsm/modules/update_ut99.sh
-
lgsm/modules/update_vints.sh
|
|
@ -93,6 +93,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -120,7 +121,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|
|
|
@ -105,6 +105,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -132,7 +133,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|
|
|
@ -111,6 +111,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -138,7 +139,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|
|
|
@ -115,6 +115,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -142,7 +143,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|
|
|
@ -91,6 +91,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -118,7 +119,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|
|
|
@ -98,6 +98,7 @@ fn_update_compare() { |
|
|
|
fn_script_log_info "${localbuild} > ${remotebuildversion}" |
|
|
|
|
|
|
|
if [ "${commandname}" == "UPDATE" ]; then |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
unset updateonstart |
|
|
|
check_status.sh |
|
|
|
# If server stopped. |
|
|
@ -125,7 +126,6 @@ fn_update_compare() { |
|
|
|
fn_firstcommand_reset |
|
|
|
fi |
|
|
|
unset exitbypass |
|
|
|
date +%s > "${lockdir}/last-updated.lock" |
|
|
|
alert="update" |
|
|
|
elif [ "${commandname}" == "CHECK-UPDATE" ]; then |
|
|
|
alert="check-update" |
|
|
|