]> git.uio.no Git - usit-rt.git/blobdiff - share/html/Install/Finish.html
Upgrade to 4.2.8
[usit-rt.git] / share / html / Install / Finish.html
index 9d53152dc1dbda5c0bf0532d17ed370809b67000..aaf2220db247683c86aa92827e1fd0c67f04827a 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2014 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} );