--- name: sync-configs description: Sync system configs from live server to repo for ISO builds disable-model-invocation: true allowed-tools: Bash, Read --- Sync system configuration files from the live server back to the repo for ISO builds. ## Steps 1. **Capture systemd service**: ```bash ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228 'sudo cat /etc/systemd/system/archipelago.service' > image-recipe/configs/archipelago.service ``` 2. **Capture nginx config**: ```bash ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228 'sudo cat /etc/nginx/sites-available/archipelago' > image-recipe/configs/nginx-archipelago.conf ``` 3. **Capture any custom scripts** in `/opt/archipelago/scripts/` if they've changed. 4. After syncing, read the captured files and verify they look correct. These configs are used by the ISO build to create new installations.