test composer install

This commit is contained in:
liberodark 2019-01-02 13:14:53 +01:00
parent 29406321fd
commit 11b4e59741

View file

@ -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