don't run composer as root (potential site security issue).

This commit is contained in:
Mike Macgirvin 2024-02-20 16:54:23 +11:00
parent 8a0af11efb
commit e1144d65f2

View file

@ -12,12 +12,13 @@ git pull
# 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
echo "Please do not run composer as root."
exit;
fi
if [ $(which composer) ]; then
composer install --no-dev
composer install --no-dev --no-interaction
else
./composer.phar install --no-dev
./composer.phar install --no-dev --no-interaction
fi
if [ -d extend ] ; then
for a in theme addon widget ; do