Browse Source

refactor: improve installation process

The code changes in this commit refactor the installation process. The `command_install.sh` file has been modified to remove unnecessary code. Additionally, the `install_complete.sh` file has been updated to provide more informative messages based on the exit code. This improves the overall clarity and user experience during installation.

Co-authored-by: AI Assistant <[email protected]>
pull/4304/head
Daniel Gibbs 2 years ago
parent
commit
a076aadf38
  1. 4
      lgsm/modules/command_install.sh
  2. 16
      lgsm/modules/install_complete.sh

4
lgsm/modules/command_install.sh

@ -48,8 +48,6 @@ else
fix.sh
install_stats.sh
install_complete.sh
if [ -z "${exitcode}" ]; then
exitcode=0
fi
fi
core_exit.sh

16
lgsm/modules/install_complete.sh

@ -9,7 +9,21 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo -e ""
echo -e "================================="
echo -e "Install Complete!"
if [ "${exitcode}" == "1" ]; then
echo -e "Install Failed!"
fn_script_log_fatal "Install Failed!"
elif [ "${exitcode}" == "2" ]; then
echo -e "Install Completed with Errors!"
fn_script_log_error "Install Completed with Errors!"
elif [ "${exitcode}" == "3" ]; then
echo -e "Install Completed with Warnings!"
fn_script_log_warn "Install Completed with Warnings!"
elif [ -z "${exitcode}" ] || [ "${exitcode}" == "0" ]; then
echo -e "Install Complete!"
fn_script_log_pass "Install Complete!"
fi
fn_script_log_info "Install Complete!"
echo -e ""
echo -e "To start server type:"

Loading…
Cancel
Save