Changeset 28120 for main/trunk/greenstone3
- Timestamp:
- 2013-08-22T17:14:03+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java
r27164 r28120 20 20 import org.greenstone.gsdl3.util.UserQueryResult; 21 21 import org.greenstone.gsdl3.util.UserTermInfo; 22 import org.greenstone.util.GlobalProperties; 22 23 import org.w3c.dom.Element; 23 24 import org.w3c.dom.NodeList; … … 880 881 881 882 // check the usersDb database, if it isn't existing, check the etc dir, create the etc dir if it isn't existing, then create the user database and add a "admin" user 882 String usersDB_dir = this.site_home+ File.separatorChar + "etc" + File.separatorChar + "usersDB";883 String usersDB_dir = GlobalProperties.getGSDL3Home() + File.separatorChar + "etc" + File.separatorChar + "usersDB"; 883 884 File usersDB_file = new File(usersDB_dir); 884 885 if (!usersDB_file.exists()) 885 886 { 886 String etc_dir = this.site_home+ File.separatorChar + "etc";887 String etc_dir = GlobalProperties.getGSDL3Home() + File.separatorChar + "etc"; 887 888 File etc_file = new File(etc_dir); 888 889 if (!etc_file.exists()) … … 891 892 if (!success) 892 893 { 893 logger.error("Couldn't create the etc dir under " + this.site_home+ ".");894 logger.error("Couldn't create the etc dir under " + GlobalProperties.getGSDL3Home() + "."); 894 895 return false; 895 896 }
Note:
See TracChangeset
for help on using the changeset viewer.