Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/panel/advanced/redis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
To install Redis you first need add their repository.

```sh
sudo apt install -y lsb-release curl gpg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Ensure installs succeed on minimal images: add update, ca-certificates, and use gnupg.

Minimal Debian/Ubuntu images often lack package indexes and CA certs; gpg is provided by gnupg. Recommend this change.

-sudo apt install -y lsb-release curl gpg
+sudo apt-get update -y
+sudo apt-get install -y --no-install-recommends ca-certificates lsb-release curl gnupg
🤖 Prompt for AI Agents
In docs/panel/advanced/redis.mdx around line 8, the installation line only
installs lsb-release, curl and gpg which can fail on minimal images; update the
package index first and include ca-certificates and gnupg (gnupg provides gpg)
so installs succeed. Replace the single apt install with a two-step approach:
run an apt update (or apt-get update) then install ca-certificates and gnupg
plus curl and lsb-release with -y to ensure noninteractive installs.

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
```
Expand Down