Skip to content

Commit

Permalink
fix for headless launch
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <[email protected]>
  • Loading branch information
daisukes committed Feb 15, 2024
1 parent 07a9951 commit 9780461
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,12 @@ if [ $local_map_server -eq 1 ]; then
fi
if [[ $ans = 'y' ]] || [[ $ans = 'Y' ]]; then
launching_server=1
gnome-terminal -- bash -c "./server-launch.sh -d $cabot_site_dir/server_data; exit"
if [[ $CABOT_HEADLESS -eq 1 ]]; then
./server-launch.sh -d $cabot_site_dir/server_data &
disown
else
gnome-terminal -- bash -c "./server-launch.sh -d $cabot_site_dir/server_data; exit"
fi
else
echo ""
exit 1
Expand Down

0 comments on commit 9780461

Please sign in to comment.