fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
435 B

12 years ago
12 years ago
12 years ago
12 years ago
  1. #!/bin/bash
  2. set -eux # -x for verbose logging to juju debug-log
  3. ## Using headless to avoid installing X server ;)
  4. apt-get -y install openjdk-7-jre-headless
  5. ## For tectonicus
  6. #apt-get -y install subversion
  7. INSTALL_DIR=/opt/apps/minecraft
  8. mkdir -p $INSTALL_DIR
  9. wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar -O $INSTALL_DIR/minecraft_server.jar
  10. cp etc/init/minecraft.conf /etc/init/minecraft.conf