mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
radicale: Workaround issue with creating log directory
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
e4351b6b97
commit
20aa2abe3b
@ -31,6 +31,7 @@ from plinth import action_utils
|
|||||||
from plinth.modules import radicale
|
from plinth.modules import radicale
|
||||||
|
|
||||||
COLLECTIONS_PATH = '/var/lib/radicale/collections'
|
COLLECTIONS_PATH = '/var/lib/radicale/collections'
|
||||||
|
LOG_PATH = '/var/log/radicale'
|
||||||
|
|
||||||
CONFIG_FILE = '/etc/radicale/config'
|
CONFIG_FILE = '/etc/radicale/config'
|
||||||
|
|
||||||
@ -125,6 +126,9 @@ def subcommand_fix_collections(_):
|
|||||||
if not os.path.exists(COLLECTIONS_PATH):
|
if not os.path.exists(COLLECTIONS_PATH):
|
||||||
os.makedirs(COLLECTIONS_PATH)
|
os.makedirs(COLLECTIONS_PATH)
|
||||||
|
|
||||||
|
if not os.path.exists(LOG_PATH):
|
||||||
|
os.makedirs(LOG_PATH)
|
||||||
|
|
||||||
|
|
||||||
def load_augeas():
|
def load_augeas():
|
||||||
"""Initialize Augeas."""
|
"""Initialize Augeas."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user