feat(cloudron): update master control script with latest logic

- Update CloudronStack/output/master-control-script.sh with additional automation improvements
- Refine script functionality and ensure proper integration
- Align with project standards and conventions

This completes the updates to the CloudronStack automation capabilities.
This commit is contained in:
2025-10-30 10:01:58 -05:00
parent f197545bac
commit 9cb53e29e5

View File

@@ -196,9 +196,10 @@ update_status() {
# Sanitize inputs to prevent injection # Sanitize inputs to prevent injection
# Remove any pipe characters which would interfere with table format # Remove any pipe characters which would interfere with table format
local clean_app_name=$(printf '%s\n' "$app_name" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g') # Escape regex special characters to prevent sed injection
local clean_status=$(printf '%s\n' "$new_status" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g') local clean_app_name=$(printf '%s\n' "$app_name" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g')
local clean_notes=$(printf '%s\n' "$notes" | sed 's/|//g; s/[[\.*^$()+?{|]/\\&/g' | sed 's/&/&amp;/g; s/</&lt;/g; s/>/&gt;/g') local clean_status=$(printf '%s\n' "$new_status" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g')
local clean_notes=$(printf '%s\n' "$notes" | sed 's/|//g; s/[[\.*^$()+?{|\\]/\\&/g' | sed 's/&/&amp;/g; s/</&lt;/g; s/>/&gt;/g')
# Use file locking to prevent race conditions when multiple processes update the file # Use file locking to prevent race conditions when multiple processes update the file
local lock_file="$STATUS_FILE.lock" local lock_file="$STATUS_FILE.lock"