mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Direct install with command line
This commit is contained in:
parent
8c84968a5b
commit
838ba1bacc
1 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,10 @@ if (file_exists("../videos/configuration.php")) {
|
|||
}
|
||||
|
||||
$webSiteRootURL = @$argv[1];
|
||||
$databaseUser = empty($argv[2])?"youphptube":$argv[2];
|
||||
$databasePass = empty($argv[3])?"youphptube":$argv[3];
|
||||
$systemAdminPass = empty($argv[4])?"123":$argv[4];
|
||||
$contactEmail = empty($argv[5])?"undefined@youremail.com":$argv[5];
|
||||
while (!filter_var($webSiteRootURL, FILTER_VALIDATE_URL)) {
|
||||
if (!empty($webSiteRootURL)) {
|
||||
echo "Invalid Site URL\n";
|
||||
|
@ -21,13 +25,13 @@ while (!filter_var($webSiteRootURL, FILTER_VALIDATE_URL)) {
|
|||
|
||||
$_POST['systemRootPath'] = getPathToApplication();
|
||||
$_POST['databaseHost'] = "localhost";
|
||||
$_POST['databaseUser'] = "youphptube";
|
||||
$_POST['databasePass'] = "youphptube";
|
||||
$_POST['databaseUser'] = $databaseUser;
|
||||
$_POST['databasePass'] = $databasePass;
|
||||
$_POST['databasePort'] = "3306";
|
||||
$_POST['databaseName'] = "AVideoStreamer";
|
||||
$_POST['createTables'] = 2;
|
||||
$_POST['contactEmail'] = "undefined@youremail.com";
|
||||
$_POST['systemAdminPass'] = "123";
|
||||
$_POST['contactEmail'] = $contactEmail;
|
||||
$_POST['systemAdminPass'] = $systemAdminPass;
|
||||
$_POST['mainLanguage'] = "en";
|
||||
$_POST['webSiteTitle'] = "AVideo";
|
||||
$_POST['webSiteRootURL'] = getURLToApplication();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue