fix: CyberMail from field format + deploy runner syncs api/ and lib/

- Notifier.php + test-notify: use plain email address in 'from' field
  (CyberMail rejects "Name <email>" format)
- deploy-runner.sh: rsync panel/api/ and panel/lib/ to web root after
  panel/public/ sync; also syncs panel/bin/ to /opt/novacpx/bin/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 04:40:16 +00:00
parent 2ab74b7569
commit bfa2cfc3f8
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -59,6 +59,14 @@ while IFS='|' read -r REPO_PATH WEB_ROOT COMMIT; do
--exclude='*.log' \
"$REPO_PATH/panel/public/" "$WEB_ROOT/" >> "$LOG" 2>&1
# Sync backend API and lib (not in panel/public, deployed separately)
rsync -av --delete --exclude='config.php' "$REPO_PATH/panel/api/" "$WEB_ROOT/api/" >> "$LOG" 2>&1
rsync -av --delete "$REPO_PATH/panel/lib/" "$WEB_ROOT/lib/" >> "$LOG" 2>&1
# Sync cron scripts to bin directory
rsync -av "$REPO_PATH/panel/bin/" /opt/novacpx/bin/ >> "$LOG" 2>&1
chmod +x /opt/novacpx/bin/*.php 2>/dev/null || true
# Run pending DB migrations
MIGR_DIR="$REPO_PATH/db/migrations"
if [[ -d "$MIGR_DIR" ]]; then