From 21a071d3247e8e42bbdc3bb89b04c65fceedda7b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 28 Feb 2023 21:21:06 -0600 Subject: [PATCH] Touch `debug_fannie.log` when installing CORE just to prevent the warning --- rattail_fabric2/corepos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rattail_fabric2/corepos.py b/rattail_fabric2/corepos.py index 146a1a9..9c0f5ee 100644 --- a/rattail_fabric2/corepos.py +++ b/rattail_fabric2/corepos.py @@ -104,6 +104,8 @@ def install_corepos(c, rootdir, rooturl_office, production=True, # fannie logging mkdir(c, '{}/fannie/logs'.format(is4c), use_sudo=True, owner='{}:www-data'.format(user), mode='0775') + c.sudo('touch {}/fannie/logs/debug_fannie.log'.format(is4c), + user='www-data') # TODO: deprecate / remove this