Commit 638018d2 authored by juga's avatar juga
Browse files

chg: Create home directory after reading config

Otherwise it'd create a `.sbws` directory even when it's run as
a supervised service.

Closes #40108
parent 35899289
......@@ -48,13 +48,14 @@ def main():
parser = create_parser()
args = parser.parse_args()
conf = get_config(args)
_ensure_dirs(conf)
_adjust_log_level(args, conf)
conf_valid, conf_errors = validate_config(conf)
if not conf_valid:
for e in conf_errors:
log.critical(e)
exit(1)
# Create directories after the home have been obtained from the config.
_ensure_dirs(conf)
configure_logging(args, conf)
parser.description = sbws_required_disk_space(conf)
def_args = [args, conf]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment