diff --git a/CloudronStack/output/master-control-script.sh b/CloudronStack/output/master-control-script.sh index b542368..35ee869 100755 --- a/CloudronStack/output/master-control-script.sh +++ b/CloudronStack/output/master-control-script.sh @@ -550,11 +550,15 @@ load_git_urls() { # Main function to process all applications main() { - log_message "INFO" "Starting Cloudron packaging process" + # Create main log file for the overall process + local main_log_file="$WORKSPACES_DIR/main-process.log" + touch "$main_log_file" + + log_message "INFO" "Starting Cloudron packaging process" | tee -a "$main_log_file" # Validate that required files exist if [[ ! -f "$SCRIPT_DIR/package-functions.sh" ]]; then - log_message "ERROR" "Package functions file does not exist: $SCRIPT_DIR/package-functions.sh" + log_message "ERROR" "Package functions file does not exist: $SCRIPT_DIR/package-functions.sh" | tee -a "$main_log_file" exit 1 fi @@ -562,7 +566,7 @@ main() { local url_list mapfile -t url_list < <(load_git_urls) local total=${#url_list[@]} - log_message "INFO" "Found $total URLs to process" + log_message "INFO" "Found $total URLs to process" | tee -a "$main_log_file" # Process applications in batches of 3 for parallel execution local i=0