From 153a60860b8a214f356579ac68d57e5436d5e13d Mon Sep 17 00:00:00 2001 From: Vicente Ferrari Smith Date: Thu, 11 Jul 2024 13:30:22 +0000 Subject: [PATCH] git-svn-id: svn://losandesgames.com/alfheim-website@35 15359d88-9307-4e75-a9c1-e5686e5897df --- setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.sh b/setup.sh index b962069..b1e666e 100644 --- a/setup.sh +++ b/setup.sh @@ -53,6 +53,14 @@ ufw --force enable # # Install fail2ban. apt --yes install fail2ban +apt --yes install certbot + +su - alfheim -c "mkdir cert" +su - alfheim -c "mkdir cert/lib" +su - alfheim -c "mkdir cert/config" +su - alfheim -c "mkdir cert/log" +su - alfheim -c "sudo certbot certonly --cert-path cert/ --work-dir cert/lib --config-dir cert/config/ --logs-dir cert/log/ --standalone" +su - alfheim -c "sudo chown -R alfheim:alfheim cert" # Add a DSN for connecting to the greenlight database to the system-wide environment # variables in the /etc/environment file.