25 lines
951 B
Markdown
25 lines
951 B
Markdown
|
|
---
|
||
|
|
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
|
||
|
|
sshpass -p 'EwPDR8q45l0Upx@' ssh -o StrictHostKeyChecking=no archipelago@192.168.1.228 'sudo cat /etc/systemd/system/archipelago.service' > image-recipe/configs/archipelago.service
|
||
|
|
```
|
||
|
|
|
||
|
|
2. **Capture nginx config**:
|
||
|
|
```bash
|
||
|
|
sshpass -p 'EwPDR8q45l0Upx@' ssh -o StrictHostKeyChecking=no 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.
|