diff --git a/scripts/install b/scripts/install index d47d998..815e14d 100644 --- a/scripts/install +++ b/scripts/install @@ -124,6 +124,7 @@ ynh_script_progression --message="Configuring php-fpm..." --time --weight=1 #ynh_replace_string --match_string="YHTZ" --replace_string="$timezone" --target_file=../conf/php-fpm.conf ynh_add_fpm_config --package="$extra_php_dependencies" + phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion) #================================================= @@ -143,16 +144,10 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php" # Install PHP dependencies using composer #================================================= -# ( -# cd "$final_path" -# export COMPOSER_HOME=$final_path -# curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \ -# && php composer.phar config --global discard-changes true --quiet \ -# && php composer.phar install --no-interaction --quiet -# ) - pushd "$final_path" || ynh_die - composer install #--no-interaction --quiet + #composer install #--no-interaction --quiet + sudo -u www-data php composer.phar install + sudo -u www-data php composer.phar $app:migrate popd || ynh_die #=================================================