fix: setup basic log files for CORE Lane

This commit is contained in:
Lance Edgar 2024-08-04 10:11:45 -05:00
parent 59ab46a335
commit fcfe741b51

View file

@ -107,12 +107,18 @@ def install_corepos(c, rootdir, rooturl_office, production=True,
'mysql_password': mysql_password, 'mysql_password': mysql_password,
'mysql_name_prefix': mysql_name_prefix}) 'mysql_name_prefix': mysql_name_prefix})
# fannie logging # office logging
mkdir(c, f'{is4c}/fannie/logs', use_sudo=True, mkdir(c, f'{is4c}/fannie/logs', use_sudo=True,
owner=f'{user}:www-data', mode='0775') owner=f'{user}:www-data', mode='0775')
c.sudo(f"bash -c 'cd {is4c}/fannie/logs && touch fannie.log debug_fannie.log'", c.sudo(f"bash -c 'cd {is4c}/fannie/logs && touch fannie.log debug_fannie.log'",
user='www-data') 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 # TODO: deprecate / remove this
def install_fannie(c, rootdir, user='www-data', branch='version-2.10', def install_fannie(c, rootdir, user='www-data', branch='version-2.10',