Skip to content
Snippets Groups Projects
Commit d2fd05ef authored by Cecile Tonglet's avatar Cecile Tonglet Committed by Christophe Simonis
Browse files

[IMP] config: Test that the config file is readable

Fixes #3237

cherry-pick of 8e720494
parent 472291b3
No related branches found
No related tags found
No related merge requests found
......@@ -350,8 +350,8 @@ class configmanager(object):
"the i18n-export option cannot be used without the database (-d) option")
# Check if the config file exists (-c used, but not -s)
die(not opt.save and opt.config and not os.path.exists(opt.config),
"The config file '%s' selected with -c/--config doesn't exist, "\
die(not opt.save and opt.config and not os.access(opt.config, os.R_OK),
"The config file '%s' selected with -c/--config doesn't exist or is not readable, "\
"use -s/--save if you want to generate it"% opt.config)
# place/search the config file on Win32 near the server installation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment