mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
5abe09bef6
commit
1eb461f6b3
2 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue