fix: Added a simple check

This commit is contained in:
2025-04-20 19:42:20 +02:00
parent c051cd37d8
commit 2018d35f57

View File

@@ -1,4 +1,6 @@
#!/bin/sh
if [ $DOMAIN -a $EMAIL]; then
if [ ! -e /usr/local/apache2/.configured ]; then
cat >> /usr/local/apache2/conf/httpd.conf <<EOF
ServerName $DOMAIN
ServerAdmin $EMAIL
@@ -9,4 +11,7 @@ EOF
httpd -k start
certbot --apache -n --keep -d $DOMAIN -m $EMAIL
httpd -k stop
touch /usr/local/apache2/.configured
fi
fi
httpd-foreground