From fcfe741b51bfb5621c9809f3a36ae81f22587844 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 4 Aug 2024 10:11:45 -0500 Subject: [PATCH] fix: setup basic log files for CORE Lane --- rattail_fabric2/corepos.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rattail_fabric2/corepos.py b/rattail_fabric2/corepos.py index ac0a10d..2aa912e 100644 --- a/rattail_fabric2/corepos.py +++ b/rattail_fabric2/corepos.py @@ -107,12 +107,18 @@ def install_corepos(c, rootdir, rooturl_office, production=True, 'mysql_password': mysql_password, 'mysql_name_prefix': mysql_name_prefix}) - # fannie logging + # office logging mkdir(c, f'{is4c}/fannie/logs', use_sudo=True, owner=f'{user}:www-data', mode='0775') c.sudo(f"bash -c 'cd {is4c}/fannie/logs && touch fannie.log debug_fannie.log'", user='www-data') + # lane logging + mkdir(c, f'{is4c}/pos/is4c-nf/log', use_sudo=True, + owner=f'{user}:www-data', mode='0775') + c.sudo(f"bash -c 'cd {is4c}/pos/is4c-nf/log && touch lane.log debug_lane.log'", + user='www-data') + # TODO: deprecate / remove this def install_fannie(c, rootdir, user='www-data', branch='version-2.10',