mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 11:12:29 +00:00
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:
parent
04f2decbeb
commit
6027178c53
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user