feat(yeswiki-installer) : allow no ip v6
This commit is contained in:
parent
30c9718ad4
commit
6ecb34cee5
2 changed files with 25 additions and 11 deletions
|
@ -62,6 +62,12 @@ if (0 == posix_getuid()) {
|
|||
'description' => 'No SSL certificate and no DNS check',
|
||||
'noValue' => true,
|
||||
],
|
||||
'noip6' => [
|
||||
'prefix' => 'noip6',
|
||||
'longPrefix' => 'no-ip-v6',
|
||||
'description' => 'No ip v6 DNS check',
|
||||
'noValue' => true,
|
||||
],
|
||||
]);
|
||||
$climate->arguments->parse();
|
||||
$domain = $climate->arguments->get('domain');
|
||||
|
@ -71,11 +77,12 @@ if (0 == posix_getuid()) {
|
|||
$type = $climate->arguments->get('type');
|
||||
$confirm = $climate->arguments->get('confirm');
|
||||
$nossl = $climate->arguments->get('nossl');
|
||||
$noip6 = $climate->arguments->get('noip6');
|
||||
$herseUser = $climate->arguments->get('herseuser');
|
||||
$hersePass = $climate->arguments->get('hersepass');
|
||||
$isFullDomain = !preg_match('/.'.$_SERVER['maindomain'].'$/isU', $domain, $matches, PREG_OFFSET_CAPTURE, 0);
|
||||
if (!$nossl) {
|
||||
checkDNS($domain, $isFullDomain);
|
||||
checkDNS($domain, $isFullDomain, $noip6);
|
||||
}
|
||||
checkIfInstalled($domain);
|
||||
$needHerse = checkHerse($herseUser, $hersePass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue