diff --git a/entrypoint.sh b/entrypoint.sh index 54208ae..7bba581 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,12 +1,17 @@ #!/bin/sh -cat >> /usr/local/apache2/conf/httpd.conf <> /usr/local/apache2/conf/httpd.conf < ServerName $DOMAIN EOF -httpd -k start -certbot --apache -n --keep -d $DOMAIN -m $EMAIL -httpd -k stop + httpd -k start + certbot --apache -n --keep -d $DOMAIN -m $EMAIL + httpd -k stop + touch /usr/local/apache2/.configured + fi +fi httpd-foreground \ No newline at end of file