fix_av.sh 713 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. # LinuxGSM fix_av.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves startup issue with Avorion
  7. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/linux64"
  9. if [ "${postinstall}" == "1" ]; then
  10. fn_parms(){
  11. parms="--datapath ${avdatapath} --galaxy-name ${selfname} --init-folders-only"
  12. }
  13. fn_print_information "starting ${gamename} server to generate configs."
  14. fn_sleep_time
  15. # go to the executeable dir and start the init of the server
  16. cd "${systemdir}" || return 2
  17. fn_parms
  18. "${executabledir}/${executable}" ${parms}
  19. fi