diff options
Diffstat (limited to 'games-server/craftbukkit/files/directory.sh')
-rw-r--r-- | games-server/craftbukkit/files/directory.sh | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/games-server/craftbukkit/files/directory.sh b/games-server/craftbukkit/files/directory.sh deleted file mode 100644 index a1ceea9..0000000 --- a/games-server/craftbukkit/files/directory.sh +++ /dev/null @@ -1,34 +0,0 @@ - -if [[ -z "$1" ]] || [[ "${1:0:1}" == "-" ]]; then - NAME="main" - echo "Multiverse name not specified. Defaulting to \"${NAME}\"." >&2 -else - NAME="$1" - echo "Using multiverse name \"${NAME}\"." >&2 - shift -fi - -if [[ "$(whoami)" == "@GAMES_USER_DED@" ]]; then - gjl_pwd="/var/lib/minecraft/${NAME}" -else - gjl_pwd="${HOME}/.minecraft/servers/${NAME}" -fi - -echo "Multiverse directory is ${gjl_pwd}." >&2 -mkdir -p "${gjl_pwd}"/{lib,plugins/update} - -if [[ "$(whoami)" == "@GAMES_USER_DED@" ]]; then - chmod g+ws "${gjl_pwd}"/{lib,plugins,plugins/update} -fi - -for LIB in "h2" "mysql jdbc-mysql" "sqlite sqlite-jdbc" "postgresql jdbc-postgresql"; do - SRC="/usr/share/${LIB#* }/lib/${LIB#* }.jar" - DEST="${gjl_pwd}/lib/${LIB% *}.jar" - - if [[ -f "${SRC}" ]]; then - ln -snf "${SRC}" "${DEST}" - elif [[ ! -f "${DEST}" ]]; then - rm -f "${DEST}" - fi -done - |