doc setup_deb822_repo arg order (#11215)

Co-authored-by: Christoph Niemann <kordolan@gmail.com>
This commit is contained in:
Christoph Niemann
2026-01-27 08:26:46 +01:00
committed by GitHub
parent 42950e22b2
commit 8ece2d395c
2 changed files with 15 additions and 13 deletions

View File

@@ -137,15 +137,17 @@ Add repository in modern deb822 format (recommended over legacy format).
**Signature**: **Signature**:
```bash ```bash
setup_deb822_repo REPO_URL NAME DIST MAIN_URL RELEASE setup_deb822_repo NAME GPG_URL REPO_URL SUITE COMPONENT [ARCHITECTURES] [ENABLED]
``` ```
**Parameters**: **Parameters**:
- `REPO_URL` - URL to GPG key (e.g., https://example.com/key.gpg)
- `NAME` - Repository name (e.g., "nodejs") - `NAME` - Repository name (e.g., "nodejs")
- `DIST` - Distribution (jammy, bookworm, etc.) - `GPG_URL` - URL to GPG key (e.g., https://example.com/key.gpg)
- `MAIN_URL` - Main repository URL - `REPO_URL` - Main repository URL (e.g., https://example.com/repo)
- `RELEASE` - Release type (main, testing, etc.) - `SUITE` - Repository suite (e.g., "jammy", "bookworm")
- `COMPONENT` - Repository component (e.g., "main", "testing")
- `ARCHITECTURES` - Optional Comma-separated list of architectures (e.g., "amd64,arm64")
- `ENABLED` - Optional "true" or "false" (default: "true")
**Returns**: **Returns**:
- `0` - Repository added successfully - `0` - Repository added successfully
@@ -154,10 +156,10 @@ setup_deb822_repo REPO_URL NAME DIST MAIN_URL RELEASE
**Example**: **Example**:
```bash ```bash
setup_deb822_repo \ setup_deb822_repo \
"https://deb.nodesource.com/gpgkey/nodesource.gpg.key" \
"nodejs" \ "nodejs" \
"https://deb.nodesource.com/gpgkey/nodesource.gpg.key" \
"https://deb.nodesource.com/node_20.x" \
"jammy" \ "jammy" \
"https://deb.nodesource.com/node_20.x" \
"main" "main"
``` ```

View File

@@ -221,10 +221,10 @@ msg_info "Setting up repository"
# Add custom repository in deb822 format # Add custom repository in deb822 format
setup_deb822_repo \ setup_deb822_repo \
"https://my-repo.example.com/gpg.key" \
"my-applications" \ "my-applications" \
"jammy" \ "https://my-repo.example.com/gpg.key" \
"https://my-repo.example.com/debian" \ "https://my-repo.example.com/debian" \
"jammy" \
"main" "main"
msg_ok "Repository configured" msg_ok "Repository configured"
@@ -244,18 +244,18 @@ msg_info "Setting up repositories"
# Node.js repository # Node.js repository
setup_deb822_repo \ setup_deb822_repo \
"https://deb.nodesource.com/gpgkey/nodesource.gpg.key" \
"nodejs" \ "nodejs" \
"jammy" \ "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" \
"https://deb.nodesource.com/node_20.x" \ "https://deb.nodesource.com/node_20.x" \
"jammy" \
"main" "main"
# Docker repository # Docker repository
setup_deb822_repo \ setup_deb822_repo \
"https://download.docker.com/linux/ubuntu/gpg" \
"docker" \ "docker" \
"jammy" \ "https://download.docker.com/linux/ubuntu/gpg" \
"https://download.docker.com/linux/ubuntu" \ "https://download.docker.com/linux/ubuntu" \
"jammy" \
"stable" "stable"
# Update once for all repos # Update once for all repos