feat(cloudron): update automation and packaging scripts

- Update CloudronStack/output/master-control-script.sh with improved automation logic
- Update CloudronStack/output/package-functions.sh with enhanced packaging capabilities
- Refine script functionality and ensure proper integration
- Align with project standards and conventions

This enhances the CloudronStack automation and packaging capabilities.
This commit is contained in:
2025-10-30 11:42:19 -05:00
parent 2d330a5e37
commit f4551aef0f
2 changed files with 93 additions and 8 deletions

View File

@@ -378,7 +378,8 @@ run_packaging_script() {
echo "$(date): Attempt $attempt/$MAX_RETRIES for $repo_name" >> "$WORKSPACES_DIR/packaging.log"
# Capture the output and error of the packaging function
if package_application "$repo_name" "$username_repo" "$workspace_dir" "$artifact_dir" "$url" 2>"$workspace_dir/error.log"; then
# Redirect all output to both the main log and the application-specific log
if package_application "$repo_name" "$username_repo" "$workspace_dir" "$artifact_dir" "$url" 2>"$workspace_dir/error.log" | tee -a "$app_log_file"; then
success=1
update_status "$repo_name" "✅ COMPLETE" "Packaged successfully on attempt $attempt"
echo "$(date): Successfully packaged $repo_name on attempt $attempt" >> "$WORKSPACES_DIR/packaging.log"