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