From 80a5b469225513cce76d05a4095534c373e256e5 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 11 Mar 2017 19:21:29 +0100 Subject: [PATCH] Update install --- scripts/install | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index fc2d28c..14ddbe6 100644 --- a/scripts/install +++ b/scripts/install @@ -25,17 +25,20 @@ CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine. CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé. -# Install dependency to convert tracks to a readable format for the browser -sudo apt-get update -sudo apt-get -y -qq install php5-sqlite - # Source YunoHost helpers source /usr/share/yunohost/helpers # Copy files to the right place final_path=/var/www/$app -sudo mkdir -p $final_path -extract_source $final_path +sudo git clone https://github.com/pips-/shuri.git $final_path +pushd $final_path +sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" +sudo php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" +sudo php composer-setup.php +sudo php -r "unlink('composer-setup.php');" +sudo ./composer.phar install +sudo mkdir db +popd # Files owned by root, www-data can just read sudo chown www-data:www-data $final_path -R