From 5a2b87dc7682abeb534734586e71caf34ee6274d Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 1 Nov 2021 23:01:43 -0400 Subject: [PATCH] Update install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 07dea36..b21a08f 100644 --- a/install.sh +++ b/install.sh @@ -368,7 +368,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 [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" = "almalinux" ]; then + dnf -y install composer + 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 --no-interaction