From 11b4e597411181a6d82d19cd064404fe5e6a81c1 Mon Sep 17 00:00:00 2001 From: liberodark Date: Wed, 2 Jan 2019 13:14:53 +0100 Subject: [PATCH] test composer install --- scripts/install | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 3be32f7..34bfb1a 100644 --- a/scripts/install +++ b/scripts/install @@ -150,14 +150,18 @@ ynh_system_user_create $app db_name=$(ynh_sanitize_dbid $app) ynh_app_setting_set $app db_name $db_name ynh_mysql_setup_db $db_name $db_name -#ynh_mysql_execute_as_root <<< "GRANT ALL PRIVILEGES ON $db_name.* TO '$app'@'127.0.0.1' WITH GRANT OPTION;FLUSH PRIVILEGES;" +#ynh_mysql_execute_as_root <<< "GRANT ALL PRIVILEGES ON $db_name.* TO '$app'@'localhost' WITH GRANT OPTION;FLUSH PRIVILEGES;" + +#============================================== +# INSTALL Composer +#============================================== + +sudo -u "admin" "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer" #============================================== # INSTALL Pterodactyl #============================================== -sudo -u "$app" "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer" - cd /var/www/pterodactyl chmod -R 755 storage/* bootstrap/cache/ cp .env.example .env