1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
DanielnetoDotCom 2020-10-27 09:31:26 -03:00
parent 1ddbe319da
commit 49181b56d6

View file

@ -31,11 +31,16 @@ while (!filter_var($webSiteRootURL, FILTER_VALIDATE_URL)) {
}
$webSiteRootURL = rtrim($webSiteRootURL, '/') . '/';
$_POST['systemRootPath'] = "/var/www/html/YouPHPTube/";
$_POST['systemRootPath'] = str_replace("install", "", getcwd());
if(!is_dir($_POST['systemRootPath'])){
$_POST['systemRootPath'] = "/var/www/html/AVideo/";
$_POST['systemRootPath'] = "/var/www/html/YouPHPTube/";
if(!is_dir($_POST['systemRootPath'])){
$_POST['systemRootPath'] = "/var/www/html/AVideo/";
}
}
$_POST['databaseHost'] = "localhost";
$_POST['databaseUser'] = $databaseUser;
$_POST['databasePass'] = $databasePass;