#!/bin/bash # Change the current hosted game by editing /usr/share/dom4/current. # Params: # $1 game name function change { if [[ -s /usr/share/dom4/current ]]; then game=$( /usr/share/dom4/current chown dom4:dom4 /usr/share/dom4/current } # Load a properties file. # Params: # $1 path to properties file function config { if [[ -z $1 ]]; then cat <> "/usr/share/dom4/config/$game.properties" cat <