We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07dc733 + be0aebe commit 081421cCopy full SHA for 081421c
src/Site_Command.php
@@ -892,6 +892,17 @@ private function delete_site() {
892
}
893
894
if ( $this->level > 4 ) {
895
+ if ( $this->le ) {
896
+ EE::log( 'Removing ssl certs.' );
897
+ $crt_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.crt";
898
+ $key_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.key";
899
+ if ( file_exists( $crt_file ) ) {
900
+ unlink( $crt_file );
901
+ }
902
+ if ( file_exists( $key_file ) ) {
903
+ unlink( $key_file );
904
905
906
if ( $this->db::delete( array( 'sitename' => $this->site_name ) ) ) {
907
EE::log( 'Removing database entry.' );
908
} else {
0 commit comments