Skip to content

Commit 696c994

Browse files
committed
only vitepress domains
1 parent 3247e66 commit 696c994

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vitepress.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@ public function priv_unsuspend_domain( $args ) {
7777
$user = $args[0];
7878
$domain = $args[1];
7979

80+
// Continue only if vitepress_port on domain
81+
if ( $hcpp->get_port( 'vitepress_port', $user, $domain ) == 0 ) return $args;
82+
8083
// Flag to add .vitepress to nginx.conf and nginx.ssl.conf on hcpp_nginx_reload
8184
if ( file_exists( '/tmp/vitepress_domains') ) {
8285
$vitepress_domains = json_decode( file_get_contents( '/tmp/vitepress_domains' ), true );
8386
}
8487
$vitepress_domains[] = [ 'user' => $user, 'domain' => $domain ];
8588
file_put_contents( '/tmp/vitepress_domains', json_encode( $vitepress_domains ) );
89+
return $args;
8690
}
8791

8892
/**

0 commit comments

Comments
 (0)