From 2018d35f572dc3cd8bc2e8702eb4854bca1236e1 Mon Sep 17 00:00:00 2001 From: Jan Szumotalski Date: Sun, 20 Apr 2025 19:42:20 +0200 Subject: [PATCH] fix: Added a simple check --- entrypoint.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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