mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
try to fix
This commit is contained in:
parent
3ccefd8fca
commit
c923cc2a27
1 changed files with 16 additions and 15 deletions
|
@ -110,22 +110,22 @@ ynh_setup_source "$final_path"
|
||||||
# INSTALL COMPOSER
|
# INSTALL COMPOSER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_print_info "Install composer"
|
#ynh_print_info "Install composer"
|
||||||
|
|
||||||
EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
|
#EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
|
||||||
curl -s https://getcomposer.org/installer > composer-setup.php
|
#curl -s https://getcomposer.org/installer > composer-setup.php
|
||||||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
#ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
|
||||||
|
#
|
||||||
if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
|
#if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
|
||||||
then
|
#then
|
||||||
php composer-setup.php --quiet
|
# php composer-setup.php --quiet
|
||||||
RESULT=$?
|
# RESULT=$?
|
||||||
rm composer-setup.php
|
# rm composer-setup.php
|
||||||
else
|
#else
|
||||||
>&2 echo 'ERROR: Invalid composer installer signature'
|
# >&2 echo 'ERROR: Invalid composer installer signature'
|
||||||
rm composer-setup.php
|
# rm composer-setup.php
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL BOOKSTACK DEPS
|
# INSTALL BOOKSTACK DEPS
|
||||||
|
@ -134,6 +134,7 @@ fi
|
||||||
ynh_print_info "Install BookStack composer dependancies"
|
ynh_print_info "Install BookStack composer dependancies"
|
||||||
|
|
||||||
pushd $final_path || exit
|
pushd $final_path || exit
|
||||||
|
php -r "readfile('https://getcomposer.org/installer');" | php
|
||||||
php composer.phar install
|
php composer.phar install
|
||||||
popd || exit
|
popd || exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue