From 20aa2abe3ba8baf385d5ac9a5fd213a71daf791c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 6 Jun 2019 18:06:25 -0700 Subject: [PATCH] radicale: Workaround issue with creating log directory Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- actions/radicale | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/radicale b/actions/radicale index f92c6f5fc..94864f9c9 100755 --- a/actions/radicale +++ b/actions/radicale @@ -31,6 +31,7 @@ from plinth import action_utils from plinth.modules import radicale COLLECTIONS_PATH = '/var/lib/radicale/collections' +LOG_PATH = '/var/log/radicale' CONFIG_FILE = '/etc/radicale/config' @@ -125,6 +126,9 @@ def subcommand_fix_collections(_): if not os.path.exists(COLLECTIONS_PATH): os.makedirs(COLLECTIONS_PATH) + if not os.path.exists(LOG_PATH): + os.makedirs(LOG_PATH) + def load_augeas(): """Initialize Augeas."""