2026-03-04 14:34:02 +00:00
|
|
|
---
|
|
|
|
|
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
|
2026-03-08 08:06:52 +00:00
|
|
|
ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228 'sudo cat /etc/systemd/system/archipelago.service' > image-recipe/configs/archipelago.service
|
2026-03-04 14:34:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. **Capture nginx config**:
|
|
|
|
|
```bash
|
2026-03-08 08:06:52 +00:00
|
|
|
ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228 'sudo cat /etc/nginx/sites-available/archipelago' > image-recipe/configs/nginx-archipelago.conf
|
2026-03-04 14:34:02 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
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.
|