From d6386a93daf4f071a21ade726478689dc0e4602f Mon Sep 17 00:00:00 2001 From: drunkendog Date: Fri, 23 Jun 2023 03:31:23 +0100 Subject: [PATCH] Add 'legacy/scripts/apache2.sh' --- legacy/scripts/apache2.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 legacy/scripts/apache2.sh diff --git a/legacy/scripts/apache2.sh b/legacy/scripts/apache2.sh new file mode 100644 index 0000000..2122961 --- /dev/null +++ b/legacy/scripts/apache2.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +export DEBIAN_FRONTEND=noninteractive + +apt-get update -y +apt-get upgrade -y +apt-get install -y apache2 certbot python3-certbot-apache + +certbot run -n --apache --agree-tos -d $1 -m $2 --redirect \ No newline at end of file