Files
web-installer/install.php
root cdd9b51723
All checks were successful
continuous-integration/drone/push Build is passing
temp mod3
2024-08-07 08:23:52 +02:00

28 lines
516 B
PHP

<?php
if ($_POST["smarthost"]=="Y") {
if ($_POST["domain"]=="") $_POST["domain"] = "localhost";
# if not FQDN
$arr = explode(".",$_POST["DOMAIN"]);
if (count($arr)==1) {
echo "Warning! It seems DOMAAIN is not an FQDN. Self-signed certificate will be created only.";
$_POST["self_signed"] = "true";
}
}
create_install_json($_POST);
/*
put_install_envs();
// check ENV variables
$output = shell_exec("set");
echo "<pre>".$output."</pre>";
//$output = shell_exec("sh install.sh");
//echo $output;
*/
?>