seafile_ynh/conf/remove_sso_conf.py
mbugeia 25bb354d14 Improve sso config
Former-commit-id: 5ef86ebac4
2015-03-18 17:34:29 +01:00

8 lines
No EOL
284 B
Python

import json
with open("/etc/ssowat/conf.json.persistent", "r") as jsonFile:
data = json.load(jsonFile)
data["unprotected_urls"].remove("/seafhttp")
with open("/etc/ssowat/conf.json.persistent", "w") as jsonFile:
jsonFile.write(json.dumps(data, indent=4, sort_keys=True))