1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/veloren_ynh.git synced 2024-09-03 17:46:10 +02:00

Add asset dir env during custom world generation

This commit is contained in:
Jules Bertholet 2021-06-18 21:27:03 -04:00
parent d037ef2d6c
commit f6ad97390a

View file

@ -103,7 +103,7 @@ function generate_custom_world {
add_configuration_files
pushd "$data_path"
grep -q "Server is ready to accept connections." <((sudo -u $app "$final_path/target/release/veloren-server-cli" --basic & echo $! >&3 ) 3>pid)
grep -q "Server is ready to accept connections." <((sudo -u $app "VELOREN_ASSETS=\"$final_path/assets\" $final_path/target/release/veloren-server-cli" --basic & echo $! >&3 ) 3>pid)
kill "$(<pid)"
fuser $port/tcp -k
popd