test composer install
This commit is contained in:
parent
29406321fd
commit
11b4e59741
1 changed files with 7 additions and 3 deletions
|
@ -150,14 +150,18 @@ ynh_system_user_create $app
|
||||||
db_name=$(ynh_sanitize_dbid $app)
|
db_name=$(ynh_sanitize_dbid $app)
|
||||||
ynh_app_setting_set $app db_name $db_name
|
ynh_app_setting_set $app db_name $db_name
|
||||||
ynh_mysql_setup_db $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
|
# INSTALL Pterodactyl
|
||||||
#==============================================
|
#==============================================
|
||||||
|
|
||||||
sudo -u "$app" "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer"
|
|
||||||
|
|
||||||
cd /var/www/pterodactyl
|
cd /var/www/pterodactyl
|
||||||
chmod -R 755 storage/* bootstrap/cache/
|
chmod -R 755 storage/* bootstrap/cache/
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
|
Loading…
Reference in a new issue