From c923cc2a2765a8083bdfb1a6bd32dd95f43eaa85 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 29 Jul 2019 20:50:59 +0200 Subject: [PATCH] try to fix --- scripts/install | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/install b/scripts/install index a796f68..7e0b1a9 100644 --- a/scripts/install +++ b/scripts/install @@ -110,22 +110,22 @@ ynh_setup_source "$final_path" # INSTALL COMPOSER #================================================= -ynh_print_info "Install composer" +#ynh_print_info "Install composer" -EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q) -curl -s https://getcomposer.org/installer > composer-setup.php -ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") - -if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ] -then - php composer-setup.php --quiet - RESULT=$? - rm composer-setup.php -else - >&2 echo 'ERROR: Invalid composer installer signature' - rm composer-setup.php - exit 1 -fi +#EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q) +#curl -s https://getcomposer.org/installer > composer-setup.php +#ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") +# +#if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ] +#then +# php composer-setup.php --quiet +# RESULT=$? +# rm composer-setup.php +#else +# >&2 echo 'ERROR: Invalid composer installer signature' +# rm composer-setup.php +# exit 1 +#fi #================================================= # INSTALL BOOKSTACK DEPS @@ -134,6 +134,7 @@ fi ynh_print_info "Install BookStack composer dependancies" pushd $final_path || exit +php -r "readfile('https://getcomposer.org/installer');" | php php composer.phar install popd || exit