This commit is contained in:
Bozhidar 2024-09-17 17:48:20 +03:00
parent 5abe09bef6
commit 1eb461f6b3
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,9 @@ class LetsEncryptCertificate extends Model
$findSSL = DomainSslCertificate::where('domain', $findDomain->domain)->first();
if ($findSSL) {
throw new \Exception('SSL already exists');
$findSSL->delete();
$findSSL = null;
// throw new \Exception('SSL already exists');
}
$findHostingSubscription = HostingSubscription::where('id', $findDomain->hosting_subscription_id)->first();

View file

@ -4,7 +4,6 @@ sudo certbot certonly \
--manual \
--preferred-challenges=http \
-d {{$domain}} \
-d mail.{{$domain}} \
--email {{$email}} \
--manual-auth-hook /usr/local/phyre/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh \
--force-renewal