@ -6,7 +6,10 @@
# Description: Overall function for managing checks.
# Runs checks that will either halt on or fix an issue.
local modulename = "Checking"
local commandnane = "CHECK"
local commandaction = "Checking"
# Cannot have selfname as breaks the function.
#local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
# Every command that requires checks just references check.sh
# check.sh selects which checks to run by using arrays
@ -14,14 +17,14 @@ local modulename="Checking"
check_root.sh
check_permissions.sh
if [ " ${ function_ selfname} " != "command_install.sh" ] && [ " ${ function_ selfname} " != "command_update_functions.sh" ] ; then
if [ " ${ selfname } " != "command_install.sh" ] && [ " ${ selfname } " != "command_update_functions.sh" ] ; then
check_system_dir.sh
fi
local allowed_commands_array = ( command_debug.sh command_start.sh command_install.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_glibc.sh
fi
done
@ -29,7 +32,7 @@ done
local allowed_commands_array = ( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_ut99_maps.sh command_monitor.sh command_start.sh command_stop.sh update_check.sh command_validate.sh command_update_functions.sh command_email_test.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_logs.sh
fi
done
@ -37,7 +40,7 @@ done
local allowed_commands_array = ( command_debug.sh command_start.sh command_stop.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_deps.sh
fi
done
@ -45,7 +48,7 @@ done
local allowed_commands_array = ( command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_ip.sh
fi
done
@ -53,7 +56,7 @@ done
local allowed_commands_array = ( update_check.sh command_debug.sh command_start.sh command_validate.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
if [ -n " ${ appid } " ] ; then
check_steamcmd.sh
fi
@ -63,7 +66,7 @@ done
local allowed_commands_array = ( command_console.sh command_start.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_tmux.sh
fi
done
@ -71,7 +74,7 @@ done
local allowed_commands_array = ( command_console.sh command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_config.sh
fi
done
@ -79,7 +82,7 @@ done
local allowed_commands_array = ( command_details.sh command_monitor.sh command_start.sh command_stop.sh command_ts3_server_pass.sh update_check.sh command_details.sh command_validate.sh )
for allowed_command in " ${ allowed_commands_array [@] } "
do
if [ " ${ allowed_command } " = = " ${ function_ selfname} " ] ; then
if [ " ${ allowed_command } " = = " ${ selfname } " ] ; then
check_status.sh
fi
done