mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
don't run composer as root (potential site security issue).
This commit is contained in:
parent
8a0af11efb
commit
e1144d65f2
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue