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