Skip to content

Commit

Permalink
feat: moved last-updated.lock file
Browse files Browse the repository at this point in the history
moved last-updated.lock to ensure it doesn't force a reboot on monitor
  • Loading branch information
dgibbs64 committed Sep 25, 2023
1 parent 79dc5f7 commit 753eb2a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lgsm/modules/update_fctr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_mc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_mcb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_pmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_ut99.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/update_vints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 753eb2a

Please sign in to comment.