fix: correct fn_script_log_fail

This commit is contained in:
Daniel Gibbs 2023-10-23 13:34:00 +01:00
parent 8b0d98c887
commit ab0fb4f14e
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
3 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ elif [ "${alert}" == "backup" ]; then
fn_alert_backup
else
fn_print_fail_nl "Missing alert type"
fn_script_log_fatal "Missing alert type"
fn_script_log_fail "Missing alert type"
core_exit.sh
fi

View File

@ -12,7 +12,7 @@ fn_messages_separator
if [ "${exitcode}" == "1" ]; then
echo -e "${bold}${red}Install Failed!${default}"
fn_script_log_fatal "Install Failed!"
fn_script_log_fail "Install Failed!"
elif [ "${exitcode}" == "2" ]; then
echo -e "${bold}${red}Install Completed with Errors!${default}}"
fn_script_log_error "Install Completed with Errors!"

View File

@ -66,7 +66,7 @@ fn_default_config_local() {
cp -n "${servercfgdir}/${servercfgdefault}" "${servercfgfullpath}"
if [ "${exitcode}" != 0 ]; then
fn_print_fail_eol
fn_script_log_fatal "copying config file [ ${servercfgdefault} ]"
fn_script_log_fail "copying config file [ ${servercfgdefault} ]"
else
fn_print_ok_eol
fn_script_log_pass "copying config file [ ${servercfgdefault} ]"