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