msm/installers/redhat.sh
Ben Pflueg dc290582eb Fix downloading latest file for minecraft jargroup
- Use 'jq' as json interpreter instead of grep regex
- Use latest package format
2018-10-01 19:44:06 +02:00

21 lines
639 B
Bash
Executable File

UPDATE_URL="https://raw.githubusercontent.com/msmhq/msm/master"
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/msmcommon.sh
source /tmp/msmcommon.sh && rm -f /tmp/msmcommon.sh
function update_system_packages() {
install_log "Updating sources"
sudo yum update --skip-broken || install_error "Couldn't update packages"
}
function install_dependencies() {
install_log "Installing required packages"
sudo yum install screen rsync zip java jq || install_error "Couldn't install dependencies"
}
function enable_init() {
install_log "Enabling automatic startup and shutdown"
sudo chkconfig --add msm
}
install_msm