Fix reading config file

This commit is contained in:
Jip-Hop 2023-02-04 20:21:36 +01:00
parent cdee8068f7
commit e29359f655
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def start_jail(jail_name):
config = configparser.ConfigParser()
try:
# Workaround to read config file without section headers
config.read_string('[DEFAULT]'+Path(jail_config_path).read_text())
config.read_string('[DEFAULT]\n'+Path(jail_config_path).read_text())
except FileNotFoundError:
fail(f'Unable to find: {jail_config_path}.')