fix(deploy): Remove --delete from www rsync to prevent module conflicts

Multiple packages share /usr/share/secubox/www/ - using --delete was
wiping out other modules' files when deploying a single package.
This commit is contained in:
CyberMind-FR 2026-05-02 18:13:16 +02:00
parent 04f2decbeb
commit 6027178c53

View File

@ -45,9 +45,10 @@ deploy_pkg() {
"${pkg_dir}/api/" "${HOST}:/usr/lib/secubox/${pkg}/api/"
# ── Copier le frontend www/ ──
# NOTE: Do NOT use --delete here as multiple packages share /usr/share/secubox/www/
if [[ -d "${pkg_dir}/www" ]]; then
ssh_run "mkdir -p /usr/share/secubox/www"
rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" \
rsync -az -e "ssh -o StrictHostKeyChecking=no" \
"${pkg_dir}/www/" "${HOST}:/usr/share/secubox/www/"
fi