Fedora 28 x64 now supported

This commit is contained in:
Marwolf
2018-07-16 18:59:50 -04:00
parent d0bf03afe1
commit 0ea6350460
2 changed files with 43 additions and 7 deletions

View File

@@ -7,6 +7,17 @@ Choices:
2. Game + Website + PHPMyAdmin 2. Game + Website + PHPMyAdmin
3. Game + Website + PHPMyAdmin + RSC Preservation Wiki 3. Game + Website + PHPMyAdmin + RSC Preservation Wiki
Operating systems supported:
* Windows 10 x64
* Mac OS X High Sierra
* Ubuntu Linux 18.04 x64
* Fedora Linux 28 x64
___ ___
## Choice 1: Download the zip, extract it, and open the "Docker-Home" folder ## Choice 1: Download the zip, extract it, and open the "Docker-Home" folder

View File

@@ -108,15 +108,20 @@ if [ "$install" == "1" ]; then
# Fedora OS ===================================================> # Fedora OS ===================================================>
elif [ "$os" == "2" ]; then elif [ "$os" == "2" ]; then
su -c 'yum update && yum install git'
echo "" echo ""
echo "" echo ""
echo "Verifying the basics are installed." echo "Verifying the basics are installed."
echo "" echo ""
su -c 'yum update && yum install unzip git build-essential apt-transport-https ca-certificates curl software-properties-common' sudo dnf -y update && sudo dnf -y upgrade && sudo dnf -y install screen make unzip git ca-certificates curl yum-utils device-mapper-persistent-data lvm2
echo "" echo ""
echo "" echo ""
echo "Do you have Java OpenJDK installed already?" echo "Permitting default game port 53595/tcp through the firewall."
firewall-cmd --permanent --add-port=53595/tcp
echo ""
firewall-cmd --reload
echo ""
echo ""
echo "Do you have Java OpenJDK and Apache Ant installed already?"
echo "" echo ""
echo "${RED}1${NC} - Install for me!" echo "${RED}1${NC} - Install for me!"
echo "${RED}2${NC} - Im all set" echo "${RED}2${NC} - Im all set"
@@ -125,8 +130,7 @@ if [ "$install" == "1" ]; then
# Fedora Java ===================================================> # Fedora Java ===================================================>
if [ "$java" == "1" ]; then if [ "$java" == "1" ]; then
su -c 'yum install alternatives' sudo dnf -y install ant
su -c '/usr/sbin/alternatives --config java'
else else
continue continue
fi fi
@@ -143,10 +147,31 @@ if [ "$install" == "1" ]; then
# Fedora Docker ===================================================> # Fedora Docker ===================================================>
if [ "$docker" == "1" ]; then if [ "$docker" == "1" ]; then
echo "Removing any old versions of Docker that might confict."
echo ""
sudo dnf -y remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
echo ""
echo ""
echo "Attempting to install Docker now" echo "Attempting to install Docker now"
echo "" echo ""
curl -fsSL get.docker.com -o get-docker.sh sudo dnf -y install dnf-plugins-core
su -c 'sh get-docker.sh' sudo dnf -y config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf -y install docker-ce docker-compose
sudo systemctl start docker
sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl enable docker
else else
continue continue
fi fi