Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
admin
/
scripts
/
builder
/
php5
/
/srv/admin/scripts/builder/php5/install.sh
#!/bin/bash -e export COMPOSER_HOME="/tmp/.composer" PHP_PATH="/opt/php-${WWW_VERSION}/bin/php" COMPOSER_PATH="/opt/php-${WWW_VERSION}/bin/composer.phar" if [[ -f ./htdocs/composer.lock || -f ./htdocs/composer.json ]]; then echo 'ERROR: composer.json and composer.lock files should be placed outside the htdocs directory (../htdocs/)' echo 'Dependencies could not be installed. Exiting...' echo 'Please refer to the documentation:' echo echo '[fr] https://docs.gandi.net/fr/simple_hosting/langages/php.html#gestion-des-dependances' echo '[en] https://docs.gandi.net/en/simple_hosting/instance_languages/php.html#dependency-management' exit 1 fi if [ -f composer.lock ]; then ${PHP_PATH} ${COMPOSER_PATH} install --no-dev else if [ -f composer.json ]; then echo WARNING: your project contains a composer.json file but no composer.lock file was \ found, dependencies could not be installed. echo Please see the documentation: echo echo '[fr] https://docs.gandi.net/fr/simple_hosting/langages/php.html#gestion-des-dependances' echo '[en] https://docs.gandi.net/en/simple_hosting/instance_languages/php.html#dependency-management' fi fi