Make installing composer packages optional, for CORE-POS

This commit is contained in:
Lance Edgar 2023-05-15 18:36:29 -05:00
parent cf32571c83
commit 86d922708a

View file

@ -40,6 +40,7 @@ def install_corepos(c, rootdir, rooturl_office, production=True,
mysql_password='corepos',
mysql_name_prefix='',
composer='composer.phar',
composer_install=True,
make_shadowread=False):
"""
Install the CORE software to the given location.
@ -62,6 +63,7 @@ def install_corepos(c, rootdir, rooturl_office, production=True,
c.sudo('touch {}/fannie/DEV_MODE'.format(is4c), user=user)
# composer install
if composer_install:
# TODO: these 'allow' entries are needed for composer 2.4 at least...
c.sudo("bash -c 'cd {} && {} config --global --no-plugins allow-plugins.composer/installers true'".format(is4c, composer),
user=user)