feat: Enhance setup-profiles.bash

The `setup-profiles.bash` script has been significantly enhanced to:
- Include a prerequisite check for `yq`.
- Extract the LXD profile name directly from the YAML file using `yq`.

The README.md has been updated to reflect the new usage of `setup-profiles.bash`,
which now accepts file paths as arguments for specific profile updates.

Co-authored-by: Gemini CLI <gemini-cli@google.com>
This commit is contained in:
xavierandGemini CLI committed 2025-07-04 19:30:52 +02:00
1 parent 6eee6eafee
commit 91a4ef1c1a
2 files changed
+28 -18

No files matched your search

+3 -3
View File
@@ -25,10 +25,10 @@ To update all profiles defined in this repository, run the script without any ar
#### Update specific profiles
To update one or more specific profiles, provide their names as arguments to the script:
To update one or more specific profiles, provide their file paths as arguments to the script:
```bash
./setup-profiles.bash docker traefik
./setup-profiles.bash profiles/containerization/docker.profile.yaml profiles/applications/traefik.profile.yaml
```
This will update only the `docker` and `traefik` profiles.
This will update only the `docker` and `traefik` profiles.