Replace \t in conf.json.persistent...

This commit is contained in:
Alexandre Aubin 2021-02-21 05:12:38 +01:00
parent cd4fdb2b61
commit f398f463f4

View file

@ -215,6 +215,9 @@ def translate_legacy_rules_in_ssowant_conf_json_persistent():
if not os.path.exists(persistent_file_name): if not os.path.exists(persistent_file_name):
return return
# Ugly hack because for some reason so many people have tabs in their conf.json.persistent ...
os.system(r"sed -i 's/\t/ /g' /etc/ssowat/conf.json.persistent")
# Ugly hack to try not to misarably fail migration # Ugly hack to try not to misarably fail migration
persistent = read_yaml(persistent_file_name) persistent = read_yaml(persistent_file_name)