fix_av.sh 673 B

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