mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-07 00:46:59 +01:00
* [FIX] Avoid long database hostname.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -56,8 +56,8 @@ class DatabaseUtil
|
||||
$conn = self::getConnection();
|
||||
$conn->exec(sprintf($query, $database, $user, SELF_IP_ADDRESS, $pass));
|
||||
|
||||
// Long hostname returned on Travis CI
|
||||
if (getenv('TRAVIS') === false) {
|
||||
// Long hostname returned on CI/CD tests
|
||||
if (strlen(SELF_HOSTNAME) < 60) {
|
||||
$conn->exec(sprintf($query, $database, $user, SELF_HOSTNAME, $pass));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user