Skip to content

Instantly share code, notes, and snippets.

View stigtsp's full-sized avatar
🕊️
peace, pls

Stig stigtsp

🕊️
peace, pls
View GitHub Profile
@stigtsp
stigtsp / debian_8_caddy.sh
Last active April 4, 2017 21:07 — forked from Nixtren/debian_8_caddy.sh
Debian 8 (Jessie) with Caddy & PHP 7.0 from scratch
#!/bin/bash
# This is my personal recipe to put a Caddy webserver running on Debian 8 (Jessie) from scratch.
# This installs some unrelated stuff as well, such as fail2ban, dstat... Feel free to modify it to your needs.
# Run: wget https://gist.githubusercontent.com/Nixtren/ae34d0308355884b9c7431ecab699eb4/raw -O /dev/stdout | bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi