diff --git a/install/install.php b/install/install.php index 90f1a03b5c..1e799ba793 100644 --- a/install/install.php +++ b/install/install.php @@ -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();