[otrs-cvs] UnitTest/bin UnitTestAutoSetup.pl,1.260,1.261

"CVS commits notifications of OTRS.org" <[email protected]> Thu, 4 Apr 2013 12:12:09 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/UnitTest/bin
In directory lancelot:/tmp/cvs-serv8410/bin

Modified Files:
	UnitTestAutoSetup.pl 
Log Message:
- make sure 'otrs' has a valid shell
- first set permissions, then rebuild config etc.

Author: mb

Index: UnitTestAutoSetup.pl
===================================================================
RCS file: /home/cvs/UnitTest/bin/UnitTestAutoSetup.pl,v
retrieving revision 1.260
retrieving revision 1.261
diff -2 -u -d -r1.260 -r1.261
--- UnitTestAutoSetup.pl	4 Apr 2013 09:27:32 -0000	1.260
+++ UnitTestAutoSetup.pl	4 Apr 2013 12:12:04 -0000	1.261
@@ -733,4 +733,5 @@
 my $UnitTestUser = 'otrs';
 system "useradd $UnitTestUser -d /opt/otrs -c 'Unit Test User' -g $Enviroment{apache}->{Group}";
+system "chsh -s /bin/bash otrs";
 
 # check lock file
@@ -1357,4 +1358,9 @@
         }
 
+        # set file permissions
+        system(
+            "/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=$UnitTestUser --web-user=$Enviroment{apache}->{User} --otrs-group=$Enviroment{apache}->{Group} --web-group=$Enviroment{apache}->{Group} /opt/otrs"
+        );
+
         # setup config
         print STDOUT "NOTICE: config setup\n";
@@ -1363,9 +1369,4 @@
         system("su - $UnitTestUser -c '$Scenario->{CheckDB}'")            && next SCENARIO;
 
-        # set file permissions
-        system(
-            "/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=$UnitTestUser --web-user=$Enviroment{apache}->{User} --otrs-group=$Enviroment{apache}->{Group} --web-group=$Enviroment{apache}->{Group} /opt/otrs"
-        );
-
         # configure apache webserver and start it
         if ( $Enviroment{apache}->{Server} ) {
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log