1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/concrete5_ynh.git synced 2024-09-03 18:25:54 +02:00

Fix installation issue

This commit is contained in:
Yalh 2019-01-15 00:48:09 +01:00
parent e47ef04318
commit df67e2af14

View file

@ -179,12 +179,12 @@ ynh_add_fpm_config
#================================================= #=================================================
echo "The installation can take long. So be patient ! :)" echo "The installation can take long. So be patient ! :)"
pushd $final_path pushd $final_path
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" sudo $app php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" sudo $app php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php sudo $app php composer-setup.php
sudo php -r "unlink('composer-setup.php');" sudo $app php -r "unlink('composer-setup.php');"
sudo ./composer.phar install sudo $app ./composer.phar install
sudo ./concrete/bin/concrete5 c5:install --db-server=localhost \ sudo $app ./concrete/bin/concrete5 c5:install --db-server=localhost \
--db-database=$db_name \ --db-database=$db_name \
--db-username=$db_name \ --db-username=$db_name \
--db-password=$db_pwd \ --db-password=$db_pwd \