Skip to content

Commit 9e3500f

Browse files
author
Daniel Neto
committed
Update
1 parent a095691 commit 9e3500f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/install.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
// Determine the folder name based on the current script directory
3030
$folderName = basename(dirname(getcwd()));
31-
$databaseName = "AVideoEncoder_" . preg_replace("/[^0-9a-z]/i", "", $folderName);
31+
// Extract the domain name from the URL
32+
$domainName = preg_replace("/[^0-9a-z]/i", "", parse_url($siteURL, PHP_URL_HOST));
33+
$databaseName = "AVideoEncoder_" . $domainName . "_" . preg_replace("/[^0-9a-z]/i", "", $folderName);
3234
$webSiteRootURL = $siteURL . "Encoder/";
3335

3436
$databaseUser = empty($argv[2]) ? $databaseUser : $argv[2];

0 commit comments

Comments
 (0)