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.
1 parent 3247e66 commit 696c994Copy full SHA for 696c994
vitepress.php
@@ -77,12 +77,16 @@ public function priv_unsuspend_domain( $args ) {
77
$user = $args[0];
78
$domain = $args[1];
79
80
+ // Continue only if vitepress_port on domain
81
+ if ( $hcpp->get_port( 'vitepress_port', $user, $domain ) == 0 ) return $args;
82
+
83
// Flag to add .vitepress to nginx.conf and nginx.ssl.conf on hcpp_nginx_reload
84
if ( file_exists( '/tmp/vitepress_domains') ) {
85
$vitepress_domains = json_decode( file_get_contents( '/tmp/vitepress_domains' ), true );
86
}
87
$vitepress_domains[] = [ 'user' => $user, 'domain' => $domain ];
88
file_put_contents( '/tmp/vitepress_domains', json_encode( $vitepress_domains ) );
89
+ return $args;
90
91
92
/**
0 commit comments