From 5f1861a6817dd74db1e5b2fd8888e0fd04aa3e89 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Wed, 8 Aug 2012 15:21:59 +0100 Subject: [PATCH] Add variables for locating other MSM files --- init/msm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/msm b/init/msm index 16e27c5..35c6cf4 100755 --- a/init/msm +++ b/init/msm @@ -32,8 +32,12 @@ if [ -f "/etc/profile.d/msm.sh" ]; then source "/etc/profile.d/msm.sh" fi +# Get real script file location +SCRIPT="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" # Get the MSM_CONF environment variable or use the default location CONF="${MSM_CONF:-/etc/msm.conf}" +# Get the MSM_BASH_COMPLETION environment variable or use default location +BASH_COMPLETION="${MSM_BASH_COMPLETION:-/etc/bash_completion.d/msm}" # The Minecraft Server Manager version, use "msm version" to check yours.