5 changed files with 24 additions and 17 deletions
@ -0,0 +1,18 @@ |
|||||
|
#!/bin/bash |
||||
|
# LinuxGSM fix_xnt.sh module |
||||
|
# Author: Daniel Gibbs |
||||
|
# Contributors: http://linuxgsm.com/contrib |
||||
|
# Website: https://linuxgsm.com |
||||
|
# Description: Install Xonotic Default Config |
||||
|
|
||||
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
||||
|
|
||||
|
# Create the directory if it doesn't exist |
||||
|
if [ ! -d "${serverfiles}/Xonotic/${selfname}/data" ]; then |
||||
|
mkdir -p "${serverfiles}/Xonotic/${selfname}/data" |
||||
|
fi |
||||
|
|
||||
|
# Copy the server.cfg file if it exists |
||||
|
if [ -f "${serverfiles}/Xonotic/server/server.cfg" ]; then |
||||
|
cp "${serverfiles}/Xonotic/server/server.cfg" "${serverfiles}/Xonotic/${selfname}/data/server.cfg" |
||||
|
fi |
@ -1,14 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
# LinuxGSM install_xnt module |
|
||||
# Author: Daniel Gibbs |
|
||||
# Contributors: http://linuxgsm.com/contrib |
|
||||
# Website: https://linuxgsm.com |
|
||||
# Description: Install Xonotic Default Config |
|
||||
|
|
||||
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
||||
|
|
||||
echo -e "" |
|
||||
echo -e "${bold}${lightyellow}Installing Xonotic${default}" |
|
||||
fn_messages_separator |
|
||||
mkdir -p "${serverfiles}/Xonotic/${selfname}/data" |
|
||||
cp "${serverfiles}/Xonotic/server/server.cfg ${serverfiles}/Xonotic/${selfname}/data/server.cfg" |
|
Loading…
Reference in new issue