Update install.sh

This commit is contained in:
Otorexer 2024-06-18 19:58:21 +01:00 committed by GitHub
parent e09caf908c
commit bab35c0058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
#! /bin/bash
sudo yum update -y
sudo yum upgrade -y
sudo yum install -y yum-utils
sudo yum update -y --allowerasing
sudo yum upgrade -y --allowerasing
sudo yum install -y --allowerasing yum-utils
sudo rm /root/.ssh/authorized_keys
sudo cp /home/opc/.ssh/authorized_keys /root/.ssh/authorized_keys
@ -10,6 +10,6 @@ sudo firewall-cmd --zone=public --add-port=0-65535/tcp --permanent
sudo firewall-cmd --zone=public --add-port=0-65535/udp --permanent
sudo firewall-cmd --reload
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl enable docker