language enhancements and tiny fixes in new installation
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -30,25 +30,27 @@ $_deftheme = 'Froxlor';
|
|||||||
|
|
||||||
// validate correct php version
|
// validate correct php version
|
||||||
if (version_compare("7.4.0", PHP_VERSION, ">=")) {
|
if (version_compare("7.4.0", PHP_VERSION, ">=")) {
|
||||||
die(
|
die(view($_deftheme . '/misc/phprequirementfailed.html.twig', [
|
||||||
view($_deftheme . '/misc/phprequirementfailed.html.twig', [
|
'{{ basehref }}' => '../',
|
||||||
'{{ basehref }}' => '../',
|
'{{ froxlor_min_version }}' => '7.4.0',
|
||||||
'{{ froxlor_min_version }}' => '7.4.0',
|
'{{ current_version }}' => PHP_VERSION,
|
||||||
'{{ current_version }}' => PHP_VERSION,
|
'{{ current_year }}' => date('Y', time()),
|
||||||
'{{ current_year }}' => date('Y', time()),
|
]));
|
||||||
])
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate vendor autoloader
|
// validate vendor autoloader
|
||||||
if (!file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
|
if (!file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
|
||||||
die(
|
die(view($_deftheme . '/misc/vendormissinghint.html.twig', [
|
||||||
view($_deftheme . '/misc/vendormissinghint.html.twig', [
|
'{{ basehref }}' => '../',
|
||||||
'{{ basehref }}' => '../',
|
'{{ froxlor_install_dir }}' => dirname(__DIR__),
|
||||||
'{{ froxlor_install_dir }}' => dirname(__DIR__),
|
'{{ current_year }}' => date('Y', time()),
|
||||||
'{{ current_year }}' => date('Y', time()),
|
]));
|
||||||
])
|
}
|
||||||
);
|
|
||||||
|
// check installation status
|
||||||
|
if (file_exists(dirname(__DIR__) . '/lib/userdata.inc.php')) {
|
||||||
|
http_response_code(404);
|
||||||
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ return [
|
|||||||
'sections' => [
|
'sections' => [
|
||||||
'step1' => [
|
'step1' => [
|
||||||
'title' => lng('install.database.title'),
|
'title' => lng('install.database.title'),
|
||||||
|
'description' => lng('install.database.description'),
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'mysql_host' => [
|
'mysql_host' => [
|
||||||
'label' => lng('mysql.mysql_server'),
|
'label' => lng('mysql.mysql_server'),
|
||||||
@@ -82,6 +83,7 @@ return [
|
|||||||
],
|
],
|
||||||
'step2' => [
|
'step2' => [
|
||||||
'title' => lng('install.admin.title'),
|
'title' => lng('install.admin.title'),
|
||||||
|
'description' => lng('install.admin.description'),
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'admin_name' => [
|
'admin_name' => [
|
||||||
'label' => lng('customer.name'),
|
'label' => lng('customer.name'),
|
||||||
@@ -101,6 +103,12 @@ return [
|
|||||||
'mandatory' => true,
|
'mandatory' => true,
|
||||||
'value' => old('admin_pass', null, 'installation'),
|
'value' => old('admin_pass', null, 'installation'),
|
||||||
],
|
],
|
||||||
|
'admin_pass_confirm' => [
|
||||||
|
'label' => lng('changepassword.new_password_confirm'),
|
||||||
|
'type' => 'password',
|
||||||
|
'mandatory' => true,
|
||||||
|
'value' => old('admin_pass_confirm', null, 'installation'),
|
||||||
|
],
|
||||||
'admin_email' => [
|
'admin_email' => [
|
||||||
'label' => lng('customer.email'),
|
'label' => lng('customer.email'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
@@ -111,6 +119,7 @@ return [
|
|||||||
],
|
],
|
||||||
'step3' => [
|
'step3' => [
|
||||||
'title' => lng('install.system.title'),
|
'title' => lng('install.system.title'),
|
||||||
|
'description' => lng('install.system.description'),
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'distribution' => [
|
'distribution' => [
|
||||||
'label' => lng('admin.configfiles.distribution'),
|
'label' => lng('admin.configfiles.distribution'),
|
||||||
@@ -170,7 +179,8 @@ return [
|
|||||||
]
|
]
|
||||||
],
|
],
|
||||||
'step4' => [
|
'step4' => [
|
||||||
'title' => lng('install.system.title'),
|
'title' => lng('install.install.title'),
|
||||||
|
'description' => lng('install.install.description'),
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'system' => [
|
'system' => [
|
||||||
'label' => lng('install.install.runcmd'),
|
'label' => lng('install.install.runcmd'),
|
||||||
|
|||||||
@@ -2469,26 +2469,30 @@ Yours sincerely, your administrator',
|
|||||||
],
|
],
|
||||||
'database' => [
|
'database' => [
|
||||||
'top' => 'Database',
|
'top' => 'Database',
|
||||||
'title' => 'Froxlor requires a database and additionally a privileged user to be able to create users and databases (GRANT option). The given database and unprivileged database-user will be created in this process. The privileged user must exist.',
|
'title' => 'Create database and user',
|
||||||
|
'description' => 'Froxlor requires a database and additionally a privileged user to be able to create users and databases (GRANT option). The given database and unprivileged database-user will be created in this process. The privileged user must exist.',
|
||||||
'user' => 'Unprivileged database user',
|
'user' => 'Unprivileged database user',
|
||||||
'dbname' => 'Database name',
|
'dbname' => 'Database name',
|
||||||
'force_create' => 'Backup and overwrite database if exists?',
|
'force_create' => 'Backup and overwrite database if exists?',
|
||||||
],
|
],
|
||||||
'admin' => [
|
'admin' => [
|
||||||
'top' => 'Admin user',
|
'top' => 'Admin user',
|
||||||
'title' => 'Let\'s create the main administrator user. This user has all privileges to adjust settings and add/update/delete resources like customers, domains, etc.',
|
'title' => 'Let\'s create the main administrator user.',
|
||||||
|
'description' => 'This user will be granted all privileges to adjust settings and add/update/delete resources like customers, domains, etc.',
|
||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'top' => 'System setup',
|
'top' => 'System setup',
|
||||||
'title' => 'Set your environment as well as server relevant data and options here to let froxlor know about your system. These values are crucial for the system configuration and operating.',
|
'title' => 'Details about your server',
|
||||||
|
'description' => 'Set your environment as well as server relevant data and options here to let froxlor know about your system. These values are crucial for the system configuration and operating.',
|
||||||
'servername' => 'Server name (FQDN, no ip-address)',
|
'servername' => 'Server name (FQDN, no ip-address)',
|
||||||
'phpbackend' => 'PHP backend',
|
'phpbackend' => 'PHP backend',
|
||||||
'activate_newsfeed' => 'Enable the official newsfeed<br><small>(https://inside.froxlor.org/news/)</small>',
|
'activate_newsfeed' => 'Enable the official newsfeed<br><small>(https://inside.froxlor.org/news/)</small>',
|
||||||
],
|
],
|
||||||
'install' => [
|
'install' => [
|
||||||
'top' => 'Finish setup',
|
'top' => 'Finish setup',
|
||||||
'title' => '@todo description',
|
'title' => 'One last step...',
|
||||||
'runcmd' => 'Run the following command as root-user in your shell on this server to install/configure all services',
|
'description' => 'The command below will download, install and configure your system according to the data you have given in this installation process.',
|
||||||
|
'runcmd' => 'Run the following command as root-user in your shell on this server:',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
{% if setup.step > 0 %}
|
{% if setup.step > 0 %}
|
||||||
<h4 class="mb-3">{{ section.title }}</h4>
|
<h4 class="mb-3">{{ section.title }}</h4>
|
||||||
<p class="lead">{{ section.description }}</p>
|
<p class="lead">{{ section.description }}</p>
|
||||||
|
<hr />
|
||||||
|
|
||||||
{% import "Froxlor/form/formfields.html.twig" as formfields %}
|
{% import "Froxlor/form/formfields.html.twig" as formfields %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user