2012-09-13 18:55:31 +00:00
|
|
|
source <(wget -qO- https://raw.github.com/marcuswhybrow/minecraft-server-manager/master/installers/common.sh)
|
2012-09-02 17:45:09 +00:00
|
|
|
|
|
|
|
function update_system_packages() {
|
|
|
|
install_log "Updating sources"
|
|
|
|
yum update || install_error "Couldn't update packages"
|
|
|
|
}
|
|
|
|
|
|
|
|
function install_dependencies() {
|
|
|
|
install_log "Installing required packages"
|
|
|
|
yum install screen rsync zip || install_error "Couldn't install dependencies"
|
|
|
|
}
|
|
|
|
|
|
|
|
function reload_cron() {
|
|
|
|
install_log "Reloading cron service"
|
|
|
|
service crond reload
|
|
|
|
}
|
|
|
|
|
|
|
|
function enable_init() {
|
|
|
|
install_log "Enabling automatic startup and shutdown"
|
|
|
|
chkconfig --add msm
|
|
|
|
}
|
2012-09-13 18:55:31 +00:00
|
|
|
|
2012-11-03 21:20:16 +00:00
|
|
|
install
|