Merged in bugfix/PMCORE-2987 (pull request #7880)
PMCORE-2987 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
e07d4de5a1
File diff suppressed because one or more lines are too long
@@ -22352,8 +22352,8 @@ msgstr "Open SSL is optional"
|
||||
# TRANSLATION
|
||||
# LABEL/ID_PROCESSMAKER_REQUIREMENTS_PHP
|
||||
#: LABEL/ID_PROCESSMAKER_REQUIREMENTS_PHP
|
||||
msgid "PHP recommended version 7.3, we maintain compatibility starting with PHP 7.1"
|
||||
msgstr "PHP recommended version 7.3, we maintain compatibility starting with PHP 7.1"
|
||||
msgid "PHP recommended version 7.4, we maintain compatibility starting with PHP 7.3"
|
||||
msgstr "PHP recommended version 7.4, we maintain compatibility starting with PHP 7.3"
|
||||
|
||||
# TRANSLATION
|
||||
# LABEL/ID_PROCESSMAKER_REQUIREMENTS_SOAP
|
||||
|
||||
@@ -13,8 +13,8 @@ include PATH_LANGUAGECONT . "translation." . SYS_LANG;
|
||||
class InstallerModule extends Controller
|
||||
{
|
||||
const MYSQL_VERSION_MAXIMUM_SUPPORTED = "5.7";
|
||||
const PHP_VERSION_MINIMUM_SUPPORTED = "7.1";
|
||||
const PHP_VERSION_NOT_SUPPORTED = "7.4";
|
||||
const PHP_VERSION_MINIMUM_SUPPORTED = "7.3";
|
||||
const PHP_VERSION_NOT_SUPPORTED = "8";
|
||||
public $path_config;
|
||||
public $path_languages;
|
||||
public $path_plugins;
|
||||
@@ -618,10 +618,14 @@ class InstallerModule extends Controller
|
||||
try {
|
||||
$host = $host === 'localhost' || $host === '127.0.0.1' ? 'localhost' : '%';
|
||||
|
||||
$query = "GRANT ALL PRIVILEGES ON `$psDatabase`.* TO $psUser@'$host' IDENTIFIED BY '$psPassword' WITH GRANT OPTION";
|
||||
$query = "CREATE USER '$psUser'@'$host' IDENTIFIED WITH mysql_native_password BY '$psPassword'";
|
||||
DB::connection(self::CONNECTION_INSTALL)
|
||||
->statement($query);
|
||||
|
||||
$query = "GRANT ALL PRIVILEGES ON `$psDatabase`.* TO '$psUser'@'$host' WITH GRANT OPTION";
|
||||
DB::connection(self::CONNECTION_INSTALL)
|
||||
->statement($query);
|
||||
|
||||
$this->installLog($query);
|
||||
|
||||
} catch (QueryException $e) {
|
||||
|
||||
Reference in New Issue
Block a user