Files
ipwa/entrypoint.sh
2025-04-15 16:30:48 +02:00

12 lines
250 B
Bash

#!/bin/sh
cat >> /usr/local/apache2/conf/httpd.conf <<EOF
ServerName $DOMAIN
ServerAdmin $EMAIL
<VirtualHost *:80>
ServerName $DOMAIN
</VirtualHost>
EOF
httpd -k start
certbot --apache -n --keep -d $DOMAIN -m $EMAIL
httpd -k stop
httpd-foreground