Ignore:
Timestamp:
2013-08-22T17:14:03+12:00 (11 years ago)
Author:
sjm84
Message:

Should be web/etc not [sitename]/etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/Authentication.java

    r27164 r28120  
    2020import org.greenstone.gsdl3.util.UserQueryResult;
    2121import org.greenstone.gsdl3.util.UserTermInfo;
     22import org.greenstone.util.GlobalProperties;
    2223import org.w3c.dom.Element;
    2324import org.w3c.dom.NodeList;
     
    880881
    881882            // 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";
    883884            File usersDB_file = new File(usersDB_dir);
    884885            if (!usersDB_file.exists())
    885886            {
    886                 String etc_dir = this.site_home + File.separatorChar + "etc";
     887                String etc_dir = GlobalProperties.getGSDL3Home() + File.separatorChar + "etc";
    887888                File etc_file = new File(etc_dir);
    888889                if (!etc_file.exists())
     
    891892                    if (!success)
    892893                    {
    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() + ".");
    894895                        return false;
    895896                    }
Note: See TracChangeset for help on using the changeset viewer.