-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
283 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
/composer.lock | ||
/config/sites/ | ||
/var | ||
/public | ||
/vendor | ||
v*/composer.lock | ||
v*/config/system/settings.php | ||
v*/config/sites/ | ||
v*/var | ||
v*/public | ||
v*/vendor | ||
/assert*.sh | ||
/public |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,20 @@ | |
|
||
set -ve | ||
|
||
rm -rf \ | ||
.build/config/sites/ \ | ||
.build/config/system/settings.php \ | ||
.build/composer.lock \ | ||
.build/public/ \ | ||
.build/vendor/ | ||
prefix=${1} | ||
|
||
cd .build/ | ||
ln -snf ${1}/public public | ||
|
||
cd ${prefix} | ||
|
||
rm -rf \ | ||
config/sites/ \ | ||
config/system/settings.php \ | ||
composer.lock \ | ||
public/ \ | ||
vendor/ | ||
|
||
composer install | ||
|
||
TYPO3_DB_USERNAME=db \ | ||
|
@@ -18,6 +24,7 @@ TYPO3_DB_HOST=db \ | |
TYPO3_DB_DBNAME=db \ | ||
TYPO3_DB_PASSWORD=db \ | ||
TYPO3_DB_DRIVER=mysqli \ | ||
TYPO3_SERVER_TYPE=other \ | ||
[email protected] \ | ||
TYPO3_SETUP_ADMIN_USERNAME=admin \ | ||
TYPO3_SETUP_ADMIN_PASSWORD='Pa$$w0rd' \ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared/additional.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "bnf/nginx-cache-test-site", | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../" | ||
}, | ||
{ | ||
"type": "path", | ||
"url": "../packages/*/" | ||
} | ||
], | ||
"license": "GPL-2.0+", | ||
"require": { | ||
"bnf/cache-status": "@dev", | ||
"bnf/nginx-cache": "@dev", | ||
"cweagans/composer-patches": "^1.7", | ||
"doctrine/dbal": "4.0.0-RC2@rc", | ||
"typo3/cms-adminpanel": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-backend": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-core": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-extbase": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-filelist": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-fluid": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-frontend": "13.1.x-dev as 13.0.0", | ||
"typo3/cms-install": "13.1.x-dev as 13.0.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"typo3/class-alias-loader": true, | ||
"typo3/cms-composer-installers": true, | ||
"cweagans/composer-patches": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared/additional.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "bnf/nginx-cache-test-site", | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../" | ||
}, | ||
{ | ||
"type": "path", | ||
"url": "../packages/*/" | ||
} | ||
], | ||
"license": "GPL-2.0+", | ||
"require": { | ||
"bnf/cache-status": "@dev", | ||
"bnf/nginx-cache": "@dev", | ||
"cweagans/composer-patches": "^1.7", | ||
"doctrine/dbal": "4.0.0-RC2@rc", | ||
"typo3/cms-adminpanel": "~13.0.0", | ||
"typo3/cms-install": "~13.0.0", | ||
"typo3/minimal": "~13.0.0" | ||
}, | ||
"extra": { | ||
"composer-exit-on-patch-failure": true, | ||
"patches": { | ||
"typo3/cms-install": { | ||
"[BUGFIX] Cast database port to int in setup command": "patches/f5296972ae7-install.patch" | ||
} | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"typo3/class-alias-loader": true, | ||
"typo3/cms-composer-installers": true, | ||
"cweagans/composer-patches": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../shared/additional.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
diff --git a/Classes/Command/SetupCommand.php b/Classes/Command/SetupCommand.php | ||
index a52afe5c1fb..aaec25928d3 100644 | ||
--- a/Classes/Command/SetupCommand.php | ||
+++ b/Classes/Command/SetupCommand.php | ||
@@ -432,7 +432,6 @@ EOT | ||
$default = $this->getDefinition()->getOption($key)->getDefault(); | ||
$defaultLabel = empty($value) ? '' : ' [default: ' . $default . ']'; | ||
$question = new Question('Enter the database "' . $key . '"' . $defaultLabel . ' ? ', $default); | ||
- | ||
if ($key === 'password') { | ||
$question = new Question('Enter the database "' . $key . '" ? ', $default); | ||
$question->setHidden(true); | ||
@@ -445,19 +444,18 @@ EOT | ||
1669747572 | ||
); | ||
} | ||
- | ||
return $host; | ||
}; | ||
$question->setValidator($hostValidator); | ||
} elseif ($key === 'port') { | ||
$portValidator = function ($port) { | ||
- if (!$this->setupDatabaseService->isValidDbPort((int)$port)) { | ||
+ $port = (int)$port; | ||
+ if (!$this->setupDatabaseService->isValidDbPort($port)) { | ||
throw new \RuntimeException( | ||
'Please use a port in the range between 1 and 65535.', | ||
1669747592, | ||
); | ||
} | ||
- | ||
return $port; | ||
}; | ||
$question->setValidator($portValidator); | ||
@@ -469,12 +467,10 @@ EOT | ||
1669747601, | ||
); | ||
} | ||
- | ||
return $value; | ||
}; | ||
$question->setValidator($emptyValidator); | ||
} | ||
- | ||
if ($envValue === false && $key === 'password') { | ||
// Force this question if no `TYPO3_DB_PASSWORD` set via cli. | ||
// Thus, the user will always be prompted for a password even --no-interaction is set. | ||
@@ -491,7 +487,6 @@ EOT | ||
$envValue = $envValue ?: $default; | ||
$value = $validator ? $validator($envValue) : $envValue; | ||
} | ||
- | ||
$databaseConnectionOptions[$key] = $value; | ||
} | ||
} | ||
diff --git a/Classes/Service/SetupDatabaseService.php b/Classes/Service/SetupDatabaseService.php | ||
index 11714d955ce..85ebd65ffff 100644 | ||
--- a/Classes/Service/SetupDatabaseService.php | ||
+++ b/Classes/Service/SetupDatabaseService.php | ||
@@ -597,7 +597,7 @@ class SetupDatabaseService | ||
'driver' => 'mysqli', | ||
'username' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['user'] ?? '', | ||
'password' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['password'] ?? '', | ||
- 'port' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 3306, | ||
+ 'port' => (int)($GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 3306), | ||
'database' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['dbname'] ?? '', | ||
]; | ||
$host = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['host'] ?? '127.0.0.1'; | ||
@@ -629,7 +629,7 @@ class SetupDatabaseService | ||
'driver' => 'pdo_mysql', | ||
'username' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['user'] ?? '', | ||
'password' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['password'] ?? '', | ||
- 'port' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 3306, | ||
+ 'port' => (int)($GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 3306), | ||
'database' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['dbname'] ?? '', | ||
]; | ||
$host = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['host'] ?? '127.0.0.1'; | ||
@@ -666,7 +666,7 @@ class SetupDatabaseService | ||
'username' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['user'] ?? '', | ||
'password' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['password'] ?? '', | ||
'host' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['host'] ?? '127.0.0.1', | ||
- 'port' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 5432, | ||
+ 'port' => (int)($GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['port'] ?? 5432), | ||
'database' => $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['dbname'] ?? '', | ||
]; | ||
if (($GLOBALS['TYPO3_CONF_VARS']['DB']['Connections'][ConnectionPool::DEFAULT_CONNECTION_NAME]['driver'] ?? '') === 'pdo_pgsql') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
mysql -Bs --execute='drop database if exists db' '' | ||
mysql -Bs --execute='create database db' '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.