mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
Make sure composer can also be used if installed locally (rather than globally)
This commit is contained in:
parent
38141de5be
commit
063e0293b3
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue