Make sure composer can also be used if installed locally (rather than globally)

This commit is contained in:
dragondaddy 2024-02-17 15:16:22 +01:00
parent 38141de5be
commit 063e0293b3

View file

@ -9,11 +9,16 @@ git pull
# update composer.lock and create an unintentional local file
# modification. Set COMPOSER_ALLOW_SUPERUSER to prevent composer
# from going interactive if this script is run from cron by the
# site admin.
# site admin. Check if composer is installed globally or locally
# (assuming that locally means in the install folder).
if [ `id -u` -eq 0 ]; then
export COMPOSER_ALLOW_SUPERUSER=1
fi
composer install --no-dev
if [ $(which composer) ]; then
composer install --no-dev
else
./composer.phar install --no-dev
fi
if [ -d extend ] ; then
for a in theme addon widget ; do
if [ -d extend/$a ]; then