1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shuri_ynh.git synced 2024-09-03 20:16:20 +02:00

Update install

This commit is contained in:
frju365 2017-03-11 19:21:29 +01:00 committed by GitHub
parent 7cf69cca3f
commit 80a5b46922

View file

@ -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é. 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 YunoHost helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
# Copy files to the right place # Copy files to the right place
final_path=/var/www/$app final_path=/var/www/$app
sudo mkdir -p $final_path sudo git clone https://github.com/pips-/shuri.git $final_path
extract_source $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 # Files owned by root, www-data can just read
sudo chown www-data:www-data $final_path -R sudo chown www-data:www-data $final_path -R