mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
89468ccc19
Added option to make msm_user account a system account (resolving issue #194)
21 lines
654 B
Bash
Executable File
21 lines
654 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 --skip-broken || install_error "Couldn't update packages"
|
|
}
|
|
|
|
function install_dependencies() {
|
|
install_log "Installing required packages"
|
|
sudo yum install screen rsync zip java || install_error "Couldn't install dependencies"
|
|
}
|
|
|
|
function enable_init() {
|
|
install_log "Enabling automatic startup and shutdown"
|
|
sudo chkconfig --add msm
|
|
}
|
|
|
|
install_msm
|