Update 'install_caddy.sh'
This commit is contained in:
1 parent
78dbdd3d73
commit
1af3537e9f
2 files changed
+10
-25
No files matched your search
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Installing Caddy"
|
||||||
|
apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
||||||
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||||
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install caddy -y
|
||||||
|
echo "Caddy installation completed."
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
install_docker() {
|
|
||||||
echo "Installing Docker"
|
|
||||||
apt-get install ca-certificates curl gnupg lsb-release -y
|
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
|
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
apt-get update
|
|
||||||
apt-get install docker-ce docker-ce-cli containerd.io -y
|
|
||||||
systemctl start docker
|
|
||||||
echo "Docker installation completed"
|
|
||||||
}
|
|
||||||
|
|
||||||
install_caddy() {
|
|
||||||
echo "Installing Caddy"
|
|
||||||
apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
|
|
||||||
apt-get update
|
|
||||||
apt-get install caddy -y
|
|
||||||
echo "Caddy installation completed."
|
|
||||||
}
|
|
||||||
|
|
||||||
install_docker
|
|
||||||
install_caddy
|
|
||||||
Reference in new issue
Block a user