Skip to content

Commit 6f756b1

Browse files
committed
Update delete to remove certs from everywhere
1 parent aff7bdd commit 6f756b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Site_Command.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,12 @@ private function delete_site() {
954954
if ( $this->level > 4 ) {
955955
if ( $this->le ) {
956956
EE::log( 'Removing ssl certs.' );
957-
$crt_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.crt";
958-
$key_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.key";
957+
$crt_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.crt";
958+
$key_file = EE_CONF_ROOT . "/nginx/certs/$this->site_name.key";
959+
$conf_certs = EE_CONF_ROOT . "/acme-conf/certs/$this->site_name";
960+
$conf_var = EE_CONF_ROOT . "/acme-conf/var/$this->site_name";
961+
\EE\Utils\delete_dir( $conf_certs );
962+
\EE\Utils\delete_dir( $conf_var );
959963
if ( file_exists( $crt_file ) ) {
960964
unlink( $crt_file );
961965
}

0 commit comments

Comments
 (0)