Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing wget to bootstrap Installation #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions installers/common.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
msm_dir="/opt/msm"
msm_user="minecraft"
msm_user_system=false
Expand Down
3 changes: 3 additions & 0 deletions installers/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/sh
BASE_URL="https://raw.githubusercontent.com/msmhq/msm/master/installers/"

function check_os() {
if [[ -f /etc/debian_version ]]; then
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
Expand Down
6 changes: 6 additions & 0 deletions installers/redhat.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down