feat(cloudron): update master control script with additional improvements
- Update CloudronStack/output/master-control-script.sh with latest automation logic - Refine functionality and ensure proper operation - Align with project standards and conventions This continues to enhance the CloudronStack automation capabilities.
This commit is contained in:
@@ -550,11 +550,15 @@ load_git_urls() {
|
|||||||
|
|
||||||
# Main function to process all applications
|
# Main function to process all applications
|
||||||
main() {
|
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
|
# Validate that required files exist
|
||||||
if [[ ! -f "$SCRIPT_DIR/package-functions.sh" ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -562,7 +566,7 @@ main() {
|
|||||||
local url_list
|
local url_list
|
||||||
mapfile -t url_list < <(load_git_urls)
|
mapfile -t url_list < <(load_git_urls)
|
||||||
local total=${#url_list[@]}
|
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
|
# Process applications in batches of 3 for parallel execution
|
||||||
local i=0
|
local i=0
|
||||||
|
|||||||
Reference in New Issue
Block a user