%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
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} );