[Rt-commit] r11949 - rt/branches/3.8-TESTING/sbin

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Apr 29 10:33:33 EDT 2008


Author: sunnavy
Date: Tue Apr 29 10:33:32 2008
New Revision: 11949

Modified:
   rt/branches/3.8-TESTING/sbin/rt-setup-database.in

Log:
no need to chdir anymore for rt-setup-database since we change the relative paths' inferring strategy

Modified: rt/branches/3.8-TESTING/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.8-TESTING/sbin/rt-setup-database.in	(original)
+++ rt/branches/3.8-TESTING/sbin/rt-setup-database.in	Tue Apr 29 10:33:32 2008
@@ -51,15 +51,6 @@
 
 use vars qw($Nobody $SystemUser $item);
 
-# we need to chdir first because maybe @LOCAL_LIB_PATH@ and @RT_LIB_PATH@ are
-# relative paths, and we mostly run this script in source dir instead of
-# installed dir
-use File::Spec;
-BEGIN {
-    chdir "@RT_PATH@"
-      if -e "@RT_PATH@" && !File::Spec->file_name_is_absolute("@RT_LIB_PATH@");
-}
-
 use lib "@LOCAL_LIB_PATH@";
 use lib "@RT_LIB_PATH@";
 


More information about the Rt-commit mailing list