From 686bfecbee9bdb9fde7ef24bacfa10ab73ed29d9 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Fri, 30 Oct 2026 00:13:20 +0100 Subject: [PATCH] CD: ship all of deploy/ and agent/ install.sh installs rollcall-dnsmasq-reload.sh and the systemd units from the deploy directory, but CD copied only five files: every deploy since a549f01 reinstalled a stale, pre-security reload script on the region from an old copy left in /opt/rollcall/deploy. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ffa5ec4..df43228 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -56,8 +56,10 @@ jobs: run: | set -eu ssh "$USER@$HOST" 'sudo mkdir -p /opt/rollcall/deploy /opt/rollcall/agent && sudo chown -R "$USER" /opt/rollcall' - scp -q deploy/rollcall deploy/install.sh deploy/rollcall.service deploy/pxelinux-default deploy/config.example.json "$USER@$HOST:/opt/rollcall/deploy/" - scp -q agent/rollcall-agent.py agent/rollcall-agent.service agent/build-image.sh "$USER@$HOST:/opt/rollcall/agent/" + # all of deploy/ and agent/: install.sh installs scripts and units from there, + # and a file left out would be installed from a stale copy + scp -q -r deploy/* "$USER@$HOST:/opt/rollcall/deploy/" + scp -q -r agent/* "$USER@$HOST:/opt/rollcall/agent/" ssh "$USER@$HOST" 'cd /opt/rollcall/deploy && chmod +x install.sh rollcall ../agent/*.sh ../agent/*.py && sudo ./install.sh && sudo rollcall list >/dev/null && echo DEPLOY_OK' image: