We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01209e1 + f0383dc commit 47bfa87Copy full SHA for 47bfa87
scripts/galaxy_main.py
@@ -225,6 +225,13 @@ def main(func=app_loop):
225
args = arg_parser.parse_args()
226
if args.ini_path and not args.config_file:
227
args.config_file = args.ini_path
228
+ if (config_file_env := os.environ.get("GALAXY_CONFIG_FILE")) and os.path.abspath(
229
+ config_file_env
230
+ ) != os.path.abspath(args.config_file):
231
+ sys.exit(
232
+ "Error: GALAXY_CONFIG_FILE environment variable is set to a different config file than the one specified on the command line."
233
+ )
234
+ os.environ["GALAXY_CONFIG_FILE"] = os.path.abspath(args.config_file)
235
if args.log_file:
236
os.environ["GALAXY_CONFIG_LOG_DESTINATION"] = os.path.abspath(args.log_file)
237
if args.server_name:
0 commit comments