File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 130
130
131
131
# Prepare Caddy
132
132
apt install -y debian-keyring debian-archive-keyring apt-transport-https
133
- curl -1sLf ' https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
134
- curl -1sLf ' https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
133
+
134
+ # Only add Caddy repository if not already configured
135
+ if [ ! -f /usr/share/keyrings/caddy-stable-archive-keyring.gpg ]; then
136
+ curl -1sLf ' https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
137
+ fi
138
+
139
+ if [ ! -f /etc/apt/sources.list.d/caddy-stable.list ]; then
140
+ curl -1sLf ' https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
141
+ fi
135
142
136
143
# Install Redis and Caddy and required tools
137
144
apt-get update
You can’t perform that action at this time.
0 commit comments