1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-09-16 14:14:42 -04:00

Fix 0.7 installation

Setting the script to use composer version 1.10.16 on 0.7 Pterodactyl installation
This commit is contained in:
TommyTran732 2021-01-14 08:04:34 -05:00 committed by GitHub
parent ebb37fb3bd
commit 3debf707c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -739,7 +739,11 @@ install_pterodactyl() {
chmod -R 755 storage/* bootstrap/cache/
output "Installing Pterodactyl..."
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
if [ "$installoption" = "2" ] || [ "$installoption" = "6" ]; then
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer --version=1.10.16
else
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
fi
cp .env.example .env
/usr/local/bin/composer install --no-dev --optimize-autoloader
php artisan key:generate --force