|
@@ -50,6 +50,8 @@ INITIAL_CONFIG = {
|
|
|
"stock": "utf-8"},
|
|
"stock": "utf-8"},
|
|
|
"acl": {
|
|
"acl": {
|
|
|
"type": "None",
|
|
"type": "None",
|
|
|
|
|
+ "public_users": "public",
|
|
|
|
|
+ "private_users": "private",
|
|
|
"httpasswd_filename": "/etc/radicale/users",
|
|
"httpasswd_filename": "/etc/radicale/users",
|
|
|
"httpasswd_encryption": "crypt",
|
|
"httpasswd_encryption": "crypt",
|
|
|
"ldap_url": "ldap://localhost:389/",
|
|
"ldap_url": "ldap://localhost:389/",
|
|
@@ -74,6 +76,8 @@ for section, values in INITIAL_CONFIG.items():
|
|
|
|
|
|
|
|
_CONFIG_PARSER.read("/etc/radicale/config")
|
|
_CONFIG_PARSER.read("/etc/radicale/config")
|
|
|
_CONFIG_PARSER.read(os.path.expanduser("~/.config/radicale/config"))
|
|
_CONFIG_PARSER.read(os.path.expanduser("~/.config/radicale/config"))
|
|
|
|
|
+if 'RADICALE_CONFIG' in os.environ:
|
|
|
|
|
+ _CONFIG_PARSER.read(os.environ['RADICALE_CONFIG'])
|
|
|
|
|
|
|
|
# Wrap config module into ConfigParser instance
|
|
# Wrap config module into ConfigParser instance
|
|
|
sys.modules[__name__] = _CONFIG_PARSER
|
|
sys.modules[__name__] = _CONFIG_PARSER
|