Dear Federico,
Thanks for your reply.
As a result, I need to modify my "dirac-install.py" to check whether I can access "
diracproject.web.cern.ch". If not, it will use my local "dirac.cfg" to get the following configs, including "BaseURL" and "DIRACOS" which also need to access "
diracproject.web.cern.ch" in "dirac.cfg" . Just like:
def __loadGlobalDefaults(self):
### I add these ###
import requests
try:
r = requests.get(url, timeout = 5)
except requests.exceptions.ConnectionError:
### end ###
self.__dbgMsg("Loading global defaults from: %s" % globalDefaultsCVMFSPath)
result = self.__loadCFGFromURL(globalDefaultsCVMFSPath)
What I mean is that I know DIRAC can get all its installation components from cvmfs, but it looks like that the installation config files cannot be got from cvmfs directly. So I guess if the priority list for "globalDefaults.cfg" is "user custom config > cvmfs path > original default url", I only need to maintain a simple customized "globalDefaults.cfg" by “--defaultsURL" parameter rather than modifing the "__loadGlobalDefaults" function in "dirac-install.py". That is the reason why I make this conversation.
Hope to get your suggestion. Thanks.
Regards,
Xuantong