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

Fixed docker installation on RHEL 8

This commit is contained in:
TommyTran732 2021-09-26 00:13:00 -04:00
parent 214216abc2
commit ee9d651671
No known key found for this signature in database
GPG Key ID: 8825C3851DC29C20

View File

@ -718,10 +718,14 @@ install_wings() {
fi
output "Installing Docker"
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
if [ "$lsb_dist" = "rhel" ]; then
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf -y install docker-ce
else
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
fi
service docker start
systemctl enable docker
systemctl enable --now docker
output "Enabling SWAP support for Docker."
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& swapaccount=1/' /etc/default/grub
output "Installing the Pterodactyl wings..."