Skip to content

Commit 63d9874

Browse files
authored
Merge pull request #6765 from DIRACGridBot/cherry-pick-2-40275fd0d-integration
[sweep:integration] dirac-configure warning about existing file
2 parents afb6a45 + 78c8155 commit 63d9874

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/Core/scripts/dirac_configure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ def runDiracConfigure(params):
593593
mkDir(configDir)
594594
params.update = True
595595
DIRAC.gConfig.dumpLocalCFGToFile(params.outputFile)
596+
elif not params.forceUpdate:
597+
DIRAC.gLogger.notice(f"{params.outputFile} exists, not overwriting it. Or use the '--ForceUpdate' Flag")
596598

597599
if params.includeAllServers:
598600
# We need user proxy or server certificate to continue in order to get all the CS URLs

0 commit comments

Comments
 (0)