diff --git a/installers/common.sh b/installers/common.sh index 09797aae..8fddd2b5 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -1,3 +1,4 @@ +#!/bin/sh msm_dir="/opt/msm" msm_user="minecraft" msm_user_system=false diff --git a/installers/install.sh b/installers/install.sh old mode 100644 new mode 100755 index 85f33baa..8566a4dc --- a/installers/install.sh +++ b/installers/install.sh @@ -1,3 +1,4 @@ +#!/bin/sh BASE_URL="https://raw.githubusercontent.com/msmhq/msm/master/installers/" function check_os() { @@ -5,6 +6,8 @@ function check_os() { INSTALL_SCRIPT="debian.sh" elif [[ -f /etc/redhat-release ]]; then INSTALL_SCRIPT="redhat.sh" + sudo yum install wget --skip-broken + elif [[ -f /etc/arch-release ]]; then INSTALL_SCRIPT="arch.sh" else diff --git a/installers/redhat.sh b/installers/redhat.sh index 7d64a3cc..f7b939de 100755 --- a/installers/redhat.sh +++ b/installers/redhat.sh @@ -1,4 +1,10 @@ +#/bin/sh +PATH=/usr/bin UPDATE_URL="https://raw.githubusercontent.com/msmhq/msm/master" +if [ ! -f "/usr/bin/wget" ]; then + echo "/usr/bin/wget not found, installing via RPM" + sudo yum install wget --skip-broken +fi wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/msmcommon.sh source /tmp/msmcommon.sh && rm -f /tmp/msmcommon.sh