msm/installers/redhat.sh
Dave Fallon 12dfb5a1c9 Whoops, fixed UPDATE_URL to use the master branch.
Conflicts:
	installers/debian.sh
	installers/redhat.sh
2013-09-03 22:19:02 -07:00

26 lines
734 B
Bash
Executable File

UPDATE_URL="https://raw.github.com/marcuswhybrow/minecraft-server-manager/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 || install_error "Couldn't update packages"
}
function install_dependencies() {
install_log "Installing required packages"
sudo yum install screen rsync zip || install_error "Couldn't install dependencies"
}
function reload_cron() {
install_log "Reloading cron service"
sudo service crond reload
}
function enable_init() {
install_log "Enabling automatic startup and shutdown"
sudo chkconfig --add msm
}
install_msm