Add 'legacy/scripts/apache2.sh'

pull/4/head
drunkendog 2023-06-23 03:31:23 +01:00
parent 8c1b48c4c9
commit d6386a93da
1 changed files with 10 additions and 0 deletions

10
legacy/scripts/apache2.sh Normal file
View File

@ -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