X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FInstall%2FFinish.html;h=eb16116d500c556878ad6ce62bc18f94aeb4df7d;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=28307badde2767985e9356b1c3e4866a3a78aefd;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e;p=freeside.git diff --git a/rt/share/html/Install/Finish.html b/rt/share/html/Install/Finish.html index 28307badd..eb16116d5 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-2016 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} );