Ignore:
Timestamp:
2008-07-09T13:12:15+12:00 (16 years ago)
Author:
davidb
Message:

Introduction of 'collecthome' which parallels 'gsdlhome' to allow the toplevel collect folder to be outside of the gsdlhome area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/wizardaction.cpp

    r15597 r16310  
    201201// collect.cfg file is writable
    202202bool wizardaction::collection_protected (const text_t &collection) {
    203   text_t cfgfile = filename_cat(gsdlhome, "collect", collection, "etc", "collect.cfg");
     203  text_t cfgfile = filename_cat(collecthome, collection, "etc", "collect.cfg");
    204204  if (file_writable(cfgfile)) return false;
    205205  return true;
     
    310310
    311311  // check to see if shortname is unique
    312   text_t fulldirname = filename_cat (gsdlhome, "collect", shortname);
     312  text_t fulldirname = filename_cat (collecthome, shortname);
    313313  if (directory_exists (fulldirname)) {
    314314    int version = 0;
     
    319319      newname.push_back ('v');
    320320      newname.appendint (version);
    321       fulldirname = filename_cat (gsdlhome, "collect", newname);
     321      fulldirname = filename_cat (collecthome, newname);
    322322    } while (directory_exists (fulldirname));
    323323
     
    468468
    469469  text_t cfgfile_content;
    470   text_t cfgfile_name = filename_cat (gsdlhome, "collect", collection, "etc", "collect.cfg");
     470  text_t cfgfile_name = filename_cat (collecthome, collection, "etc", "collect.cfg");
    471471  text_t pluginstr, pluginname;
    472472
     
    654654  if ((args[macro_prefix+"econf"] == 1) || (args[macro_prefix+"esrce"] == 1)) {
    655655    // we're adding to a collection in place
    656     return filename_cat(gsdlhome, "collect"); 
     656    return collecthome;
    657657  }
    658658  else {
     
    673673      if ((*rprotolist_here).p->get_protocol_name (err) == "nullproto") {
    674674    // create collection server and add it to nullproto
    675     (*rprotolist_here).p->add_collection (collection, recpt, gsdlhome, gsdlhome);
     675    (*rprotolist_here).p->add_collection (collection, recpt, gsdlhome, collecthome, dbhome);
    676676    // make sure gsdlhome is configured
    677677    text_tarray tmp;
Note: See TracChangeset for help on using the changeset viewer.