feat: strengthen domain validation with special character check
- Add regex pattern ^[a-zA-Z0-9][-a-zA-Z0-9.]*[a-zA-Z0-9]$ for domain validation
- Require domain to start and end with alphanumeric characters
- Only allow letters, numbers, hyphens and dots in domain names
- Provide specific error messages for empty, space, and invalid character cases
fix: resolve shellcheck error in directory path validation
- Replace =~ regex with == glob matching to avoid special char parsing issues
- Escape < > \ | characters to prevent redirection operator misinterpretation
- Maintain path validation functionality
Signed-off-by: Teddysun <i@teddysun.com>
fix(shellcheck): resolve SC2155 and SC2034 warnings
- Separate declaration from assignment for SCRIPT_DIR and timestamp
- Add shellcheck disable comments for nameref output parameters
- Remove unused php_sock variable from install_php function
Signed-off-by: Teddysun <i@teddysun.com>