summaryrefslogtreecommitdiff
path: root/rt/share/html/Install/Finish.html
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Install/Finish.html')
-rw-r--r--rt/share/html/Install/Finish.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/rt/share/html/Install/Finish.html b/rt/share/html/Install/Finish.html
index 9f84457e8..8f9ef47e9 100644
--- a/rt/share/html/Install/Finish.html
+++ b/rt/share/html/Install/Finish.html
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -79,9 +79,11 @@ if ( $Run ) {
RT->InitClasses();
RT->InitPlugins();
- system( 'chmod -w ' . RT::Installer->ConfigFile ) &&
+ my $ret = chmod 0440, RT::Installer->ConfigFile;
+ if ( !$ret ) {
$RT::Logger->error(
'failed to make ' . RT::Installer->ConfigFile . ' readonly' );
+ }
my $root = RT::User->new( RT->SystemUser );
$root->Load('root');
my ($ok, $val) = $root->SetPassword( $RT::Installer->{InstallConfig}{Password} );