tnonate / thenewoil

A project dedicated to teaching beginners and non-tech-savvy people about digital privacy and cybersecurity.
https://thenewoil.org
Other
15 stars 8 forks source link

Install caddy-umami module #14

Closed jonaharagon closed 6 months ago

jonaharagon commented 7 months ago

Before merging, what you would do on your server is:

wget https://github.com/jonaharagon/caddy-build/releases/latest/download/caddy-linux-amd64
chmod +x caddy-linux-arm64
sudo dpkg-divert --divert /usr/bin/caddy.default --rename /usr/bin/caddy
sudo mv ./caddy-linux-arm64 /usr/bin/caddy.custom
sudo update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.default 10
sudo update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.custom 50
sudo systemctl restart caddy

Explanation of these commands is in the PR. Closes #10