fix_av.sh 660 B

123456789101112131415161718
  1. #!/bin/bash
  2. # LinuxGSM fix_av.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with Avorion.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"
  9. # Generates the server config if it doesn't exist.
  10. if [ ! -f "${servercfgfullpath}" ]; then
  11. startparameters="--datapath ${avdatapath} --galaxy-name ${selfname} --init-folders-only"
  12. fn_print_information "starting ${gamename} server to generate configs."
  13. cd "${systemdir}" || exit
  14. eval "${executable} ${startparameters}"
  15. fi