mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Split out install script into separate file.
This commit is contained in:
parent
070eaab0b8
commit
138ef441ab
36
installers/debian.sh
Normal file
36
installers/debian.sh
Normal file
@ -0,0 +1,36 @@
|
||||
echo "\033[1;32mMSM INSTALL: Updating sources\033[m"
|
||||
apt-get update
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Installing required packages\033[m"
|
||||
apt-get install screen rsync zip
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Creating default user \"minecraft\"\033[m"
|
||||
adduser --system minecraft
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Creating MSM directories\033[m"
|
||||
mkdir -p /opt/msm
|
||||
chown minecraft:minecraft /opt/msm
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Downloading latest MSM configuration file\033[m"
|
||||
wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/msm.conf -O /etc/msm.conf
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Downloading latest MSM cron file\033[m"
|
||||
wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/cron/msm -O /etc/cron.d/msm
|
||||
service cron reload
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Downloading latest MSM version\033[m"
|
||||
wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/init/msm -O /etc/init.d/msm
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Giving it the necessary permissions\033[m"
|
||||
chmod 755 /etc/init.d/msm
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Enabling automatic startup and shutdown\033[m"
|
||||
update-rc.d msm defaults
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Making MSM accessible as the command \"msm\"\033[m"
|
||||
ln -s /etc/init.d/msm /usr/local/bin/msm
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Asking MSM to update itself\033[m"
|
||||
/etc/init.d/msm update --noinput
|
||||
|
||||
echo "\n\033[1;32mMSM INSTALL: Done. Type \"msm help\" to get started. Have fun!\033[m"
|
Loading…
Reference in New Issue
Block a user