Commit 2afc5b9b authored by anton.shloma's avatar anton.shloma

Small fix for installation

parent d4bc0e81
...@@ -140,7 +140,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware ...@@ -140,7 +140,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
require_once DRUSH_DRUPAL_CORE . '/includes/install.core.inc'; require_once DRUSH_DRUPAL_CORE . '/includes/install.core.inc';
drush_op('install_drupal', $class_loader, $settings); drush_op('install_drupal', $class_loader, $settings);
if (empty($options['account-pass'])) { if (empty($options['account-pass'])) {
$this->logger()->success(dt('Установка завершена. Имя пользователя: @name Пароль: @pass', ['@name' => $options['account-name'], '@pass' => $account_pass])); $this->logger()->success(dt('Установка завершена. Имя пользователя: @name Пароль: @pass. Для входа в систему воспользуйтесь ссылкой http://ваш-домен/user/login', ['@name' => $options['account-name'], '@pass' => $account_pass]));
} else { } else {
$this->logger()->success(dt('Установка завершена.')); $this->logger()->success(dt('Установка завершена.'));
} }
...@@ -308,10 +308,10 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware ...@@ -308,10 +308,10 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
$sitesfile_write = realpath($confPath) != $default && !file_exists($sitesfile); $sitesfile_write = realpath($confPath) != $default && !file_exists($sitesfile);
if (!file_exists($settingsfile)) { if (!file_exists($settingsfile)) {
$msg[] = dt('@settingsfile файл создан', ['@settingsfile' => $settingsfile]); $msg[] = dt('создать файл @settingsfile', ['@settingsfile' => $settingsfile]);
} }
if ($sitesfile_write) { if ($sitesfile_write) {
$msg[] = dt('@sitesfile файл создан', ['@sitesfile' => $sitesfile]); $msg[] = dt('создать файл @sitesfile', ['@sitesfile' => $sitesfile]);
} }
if ($sql->dbExists()) { if ($sql->dbExists()) {
$msg[] = dt("удалить все таблицы в базе данных '@db'.", ['@db' => $db_spec['database']]); $msg[] = dt("удалить все таблицы в базе данных '@db'.", ['@db' => $db_spec['database']]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment