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.
 
 

17 lines
376 B

#!/bin/bash
set -eux # -x for verbose logging to juju debug-log
## Using headless to avoid installing X server ;)
apt-get -y install openjdk-7-jre-headless
INSTALL_DIR=/opt/apps/minecraft
mkdir -p $INSTALL_DIR
wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar -O $INSTALL8DIR/minecraft_server.jar
cp etc/init/minecraft /etc/init/minecraft