X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FInstall%2Findex.html;h=9b75672575666cefc98bf2c8e587b79bac662779;hp=1c08c73b2a7144d42fa3abc36e1d35f5edb7121a;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/share/html/Install/index.html b/rt/share/html/Install/index.html index 1c08c73b2..9b7567257 100644 --- a/rt/share/html/Install/index.html +++ b/rt/share/html/Install/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -76,11 +76,12 @@

<% loc('Getting started') %>

-<&|/l&>You're seeing this screen because you started up an RT server without a working database. Most likely, this is the first time you're running RT. If you click Let's go! below, RT will guide you through setting up your RT server and database. +<&|/l, loc("Let's go!") &>You're seeing this screen because you started up an RT server without a working database. Most likely, this is the first time you're running RT. If you click "[_1]" below, RT will guide you through setting up your RT server and database.

-<&|/l&>If you already have a working RT server and database, you should take this opportunity to make sure that your database server is running and that the RT server can connect to it. Once you've done that, stop and start the RT server.

+<&|/l&>If you already have a working RT server and database, you should take this opportunity to make sure that your database server is running and that the RT server can connect to it. Once you've done that, stop and start the RT server. +

<& /Elements/Submit, Label => loc( "Let's go!"), Name => 'Run' &> @@ -91,11 +92,11 @@ my @errors; my $locked; -my $file = File::Spec->catfile( $RT::EtcPath, 'RT_SiteConfig.pm' ); +my $file = RT::Installer->ConfigFile; if ( ! -e $file ) { # write a blank RT_SiteConfig.pm - open my $fh, '>', $file or die $!; + open( my $fh, '>', $file ) or die $!; close $fh; } elsif ( ! -w $file ) { @@ -109,8 +110,8 @@ elsif ( $Run ) { $RT::Installer->{InstallConfig} ||= {}; for my $field ( qw/DatabaseType DatabaseName DatabaseHost DatabasePort - DatabaseUser DatabaseRequireSSL rtname - Organization Timezone CommentAddress CorrespondAddress + DatabaseUser rtname + Organization CommentAddress CorrespondAddress SendmailPath WebDomain WebPort/ ) { $RT::Installer->{InstallConfig}{$field} ||= RT->Config->Get($field); @@ -124,12 +125,12 @@ elsif ( $Run ) { RT::Interface::Web::Redirect(RT->Config->Get('WebURL') . 'Install/DatabaseType.html'); } elsif ( $ChangeLang && $Lang ) { # hackish, but works - $session{'CurrentUser'} = new RT::CurrentUser; + $session{'CurrentUser'} = RT::CurrentUser->new; $session{'CurrentUser'}->LanguageHandle( $Lang ); } my $lang_handle = do { local $@; eval { - ($session{'CurrentUser'} || RT::CurrentUser->new($RT::SystemUser->Id)) + ($session{'CurrentUser'} || RT::CurrentUser->new(RT->SystemUser->Id)) ->LanguageHandle } };