Skip to content

Commit

Permalink
installer ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Sep 29, 2024
1 parent 8928d87 commit fd65466
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 16 additions & 4 deletions lgsm/modules/install_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,20 @@ fn_set_config_vars() {
else
changes+=$(sed -i "s/SERVERNAME/${servername}/g w /dev/stdout" "${servercfgfullpath}")
fi
echo -e "generating rcon/admin password\c"
fn_script_log_info "generating rcon/admin password"
exitcode=$?
if [ "${exitcode}" -ne 0 ]; then # shellcheck disable=SC2181
fn_print_fail_eol
fn_script_log_fail "setting hostname"
elif [ "${changes}" != "" ]; then
fn_print_ok_eol_nl
fn_script_log_pass "setting hostname"
else
fn_print_skip_eol_nl
fi

echo -en "generating admin/rcon password\c"
fn_script_log_info "generating admin/rcon password"
fn_sleep_time
if [ "${shortname}" == "squad" ]; then
changes+=$(sed -i "s/ADMINPASSWORD/${adminpass}/g w /dev/stdout" "${servercfgdir}/Rcon.cfg")
else
Expand All @@ -117,10 +129,10 @@ fn_set_config_vars() {
exitcode=$?
if [ "${exitcode}" -ne 0 ]; then # shellcheck disable=SC2181
fn_print_fail_eol
fn_script_log_fail "generating rcon/admin password"
fn_script_log_fail "generating admin/rcon password"
elif [ "${changes}" != "" ]; then
fn_print_ok_eol_nl
fn_script_log_pass "generating rcon/admin password"
fn_script_log_pass "generating admin/rcon password"
else
fn_print_skip_eol_nl
fi
Expand Down
1 change: 0 additions & 1 deletion lgsm/modules/install_server_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ fi

if [ -z "${autoinstall}" ]; then
echo -e ""
fn_messages_separator
if ! fn_prompt_yn "Was the install successful?" Y; then
install_retry.sh
fi
Expand Down

0 comments on commit fd65466

Please sign in to comment.