@@ -558,7 +558,7 @@ function set_php_permissions() {
558558# Check if all required EngineScript installation components are completed
559559# Returns 0 if all components are installed, exits with error if incomplete
560560function check_installation_completion() {
561- local install_log=" /var/log/EngineScript/ install-log.log "
561+ local install_log=" /etc/enginescript/ install-state.conf "
562562 local missing_components=()
563563 local quiet_mode=" ${1:- false} " # Optional parameter for quiet mode
564564
@@ -812,7 +812,7 @@ function validate_not_placeholder() {
812812
813813
814814# ----------------------------------------------------------------
815- # Run an idempotent install step: skip if already completed, otherwise execute and mark done
815+ # Run an idempotent install step: skip if already completed, otherwise execute
816816# Usage: run_install_step "FLAG_NAME" "/path/to/script.sh" "Step Description"
817817function run_install_step() {
818818 local flag_name=" $1 "
@@ -824,7 +824,6 @@ function run_install_step() {
824824 echo " ${flag_name} script has already run."
825825 else
826826 " ${script_path} " 2>> /tmp/enginescript_install_errors.log
827- echo " ${flag_name} =1" >> /var/log/EngineScript/install-log.log
828827 fi
829828 print_last_errors
830829 debug_pause " ${step_desc} "
@@ -833,20 +832,16 @@ function run_install_step() {
833832
834833# ----------------------------------------------------------------
835834# Verify a systemd service is running after installation
836- # Logs completion flag and exits on failure
837- # Usage: verify_service_running "service_name" "LOG_FLAG" " Display Name"
835+ # Exits on failure
836+ # Usage: verify_service_running "service_name" "Display Name"
838837function verify_service_running() {
839838 local service_name=" $1 "
840- local log_flag=" ${2:- " " } "
841- local display_name=" ${3:- ${service_name} } "
839+ local display_name=" ${2:- ${service_name} } "
842840 local status
843841
844842 status=" $( systemctl is-active " ${service_name} " ) "
845843 if [[ " ${status} " == " active" ]]; then
846844 echo " PASSED: ${display_name} is running."
847- if [[ -n " ${log_flag} " ]]; then
848- echo " ${log_flag} =1" >> /var/log/EngineScript/install-log.log
849- fi
850845 else
851846 echo " FAILED: ${display_name} not running. Please diagnose this issue before proceeding."
852847 exit 1
0 commit comments