standard-build/legacy/scripts/apache2.sh

10 lines
213 B
Bash
Raw Normal View History

2023-06-23 03:31:23 +01:00
#!/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