X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FInstall%2FFinish.html;h=b82ae78f17e04e941df8152a5114ed6af5cadb7c;hp=28307badde2767985e9356b1c3e4866a3a78aefd;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=919e930aa9279b3c5cd12b593889cd6de79d67bf diff --git a/rt/share/html/Install/Finish.html b/rt/share/html/Install/Finish.html index 28307badd..b82ae78f1 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-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (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} );