Safer install of composer

This commit is contained in:
Bob Mottram 2017-05-19 16:00:21 +01:00
parent edd0e53d89
commit 290799c972
2 changed files with 5454 additions and 1 deletions

5446
image_build/composer_install Normal file

File diff suppressed because it is too large Load Diff

View File

@ -333,7 +333,14 @@ function install_movim {
git checkout $MOVIM_COMMIT -b $MOVIM_COMMIT
set_completion_param "movim commit" "$MOVIM_COMMIT"
curl -sS https://getcomposer.org/installer | php
# curl -sS https://getcomposer.org/installer | php
if [ -f ~/freedombone/image_build/composer_install ]; then
cat ~/freedombone/image_build/composer_install | php
else
if [ -f /home/$MY_USERNAME/freedombone/image_build/composer_install ]; then
cat /home/$MY_USERNAME/freedombone/image_build/composer_install | php
fi
fi
php composer.phar install
cd /var/www/$MOVIM_DOMAIN_NAME/htdocs/config