fix_av.sh 655 B

1234567891011121314151617181920212223
  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. local commandname="FIX"
  7. local commandaction="Fix"
  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 ${avgalaxy} --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