Skip to content

Commit 8f01d1b

Browse files
committed
fix(check): update allowed commands to include RESTART in various checks (#4278)
1 parent 9eabf2e commit 8f01d1b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lgsm/modules/check.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ if [ "${commandname}" != "INSTALL" ] && [ "${commandname}" != "UPDATE-LGSM" ] &&
3131
check_system_dir.sh
3232
fi
3333

34-
allowed_commands_array=(START DEBUG)
34+
allowed_commands_array=(DEBUG RESTART START)
3535
for allowed_command in "${allowed_commands_array[@]}"; do
3636
if [ "${allowed_command}" == "${commandname}" ]; then
3737
check_executable.sh
3838
fi
3939
done
4040

4141
if [ "$(whoami)" != "root" ]; then
42-
allowed_commands_array=(DEBUG START INSTALL)
42+
allowed_commands_array=(DEBUG RESTART START INSTALL)
4343
for allowed_command in "${allowed_commands_array[@]}"; do
4444
if [ "${allowed_command}" == "${commandname}" ]; then
4545
check_glibc.sh
@@ -54,21 +54,21 @@ for allowed_command in "${allowed_commands_array[@]}"; do
5454
fi
5555
done
5656

57-
allowed_commands_array=(BACKUP DEBUG DETAILS START UPDATE)
57+
allowed_commands_array=(BACKUP DEBUG DETAILS RESTART START UPDATE)
5858
for allowed_command in "${allowed_commands_array[@]}"; do
5959
if [ "${allowed_command}" == "${commandname}" ]; then
6060
check_deps.sh
6161
fi
6262
done
6363

64-
allowed_commands_array=(CONSOLE DEBUG MONITOR START STOP)
64+
allowed_commands_array=(CONSOLE DEBUG MONITOR RESTART START STOP)
6565
for allowed_command in "${allowed_commands_array[@]}"; do
6666
if [ "${allowed_command}" == "${commandname}" ]; then
6767
check_config.sh
6868
fi
6969
done
7070

71-
allowed_commands_array=(DEBUG DETAILS DEV-QUERY-RAW MONITOR POST_DETAILS START STOP POST-DETAILS)
71+
allowed_commands_array=(DEBUG DETAILS DEV-QUERY-RAW MONITOR POST_DETAILS RESTART START STOP POST-DETAILS)
7272
for allowed_command in "${allowed_commands_array[@]}"; do
7373
if [ "${allowed_command}" == "${commandname}" ]; then
7474
if [ -z "${installflag}" ]; then
@@ -77,7 +77,7 @@ for allowed_command in "${allowed_commands_array[@]}"; do
7777
fi
7878
done
7979

80-
allowed_commands_array=(DEBUG START UPDATE VALIDATE CHECK-UPDATE)
80+
allowed_commands_array=(DEBUG RESTART START UPDATE VALIDATE CHECK-UPDATE)
8181
for allowed_command in "${allowed_commands_array[@]}"; do
8282
if [ "${allowed_command}" == "${commandname}" ]; then
8383
if [ "${appid}" ]; then
@@ -86,21 +86,21 @@ for allowed_command in "${allowed_commands_array[@]}"; do
8686
fi
8787
done
8888

89-
allowed_commands_array=(CHANGE-PASSWORD DETAILS MONITOR START STOP UPDATE VALIDATE POST-DETAILS)
89+
allowed_commands_array=(CHANGE-PASSWORD DETAILS MONITOR RESTART START STOP UPDATE VALIDATE POST-DETAILS)
9090
for allowed_command in "${allowed_commands_array[@]}"; do
9191
if [ "${allowed_command}" == "${commandname}" ]; then
9292
check_status.sh
9393
fi
9494
done
9595

96-
allowed_commands_array=(DEBUG START INSTALL)
96+
allowed_commands_array=(DEBUG RESTART START INSTALL)
9797
for allowed_command in "${allowed_commands_array[@]}"; do
9898
if [ "${allowed_command}" == "${commandname}" ]; then
9999
check_system_requirements.sh
100100
fi
101101
done
102102

103-
allowed_commands_array=(DETAILS MONITOR START STOP UPDATE VALIDATE POST-DETAILS)
103+
allowed_commands_array=(DETAILS MONITOR RESTART START STOP UPDATE VALIDATE POST-DETAILS)
104104
for allowed_command in "${allowed_commands_array[@]}"; do
105105
if [ "${allowed_command}" == "${commandname}" ]; then
106106
check_gamedig.sh

0 commit comments

Comments
 (0)