From d76d8fb330f9e01a998ed7e496fead53e8e3df40 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Sat, 5 Sep 2026 10:17:48 -0300 Subject: [PATCH] ops: run initial deploy check during installation --- scripts/install-auto-deploy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/install-auto-deploy.sh b/scripts/install-auto-deploy.sh index 039b756..8c8be04 100644 --- a/scripts/install-auto-deploy.sh +++ b/scripts/install-auto-deploy.sh @@ -93,9 +93,16 @@ UNIT systemctl daemon-reload systemctl enable --now dhv2-auto-deploy.timer +if ! systemctl start dhv2-auto-deploy.service; then + echo + echo "ERROR: la comprobación inicial de deploy falló." + journalctl -u dhv2-auto-deploy.service -n 140 --no-pager || true + exit 1 +fi + echo echo "============================================================" -echo " DH V2 AUTO-DEPLOY INSTALADO" +echo " DH V2 AUTO-DEPLOY INSTALADO Y VALIDADO" echo "============================================================" echo "Watcher: $WATCHER" echo "Timer: dhv2-auto-deploy.timer"