Still fighting with tmux.

This commit is contained in:
Storm Dragon
2026-04-17 15:35:18 -04:00
parent 73117bfa7d
commit 8d1883b26f

View File

@@ -9,7 +9,6 @@ topspeedServiceScript="${topspeedInstallDir}/topspeed-service.sh"
topspeedStopScript="${topspeedInstallDir}/topspeed-stop.sh"
topspeedBinaryPath="${topspeedRuntimeDir}/TopSpeed.Server"
topspeedSessionName="topspeed"
topspeedTmuxShell="/bin/bash"
topspeedRepoApi="https://api.github.com/repos/diamondStar35/top_speed/releases"
topspeedAssetPattern='^TopSpeed\.Server-linux-arm64-Release-v-.*\.zip$'
topspeedServerPort="28630"
@@ -171,7 +170,6 @@ cat > "$tempServiceScript" <<EOF
sessionName="${topspeedSessionName}"
runtimeDir="${topspeedRuntimeDir}"
binaryPath="${topspeedBinaryPath}"
tmuxShell="${topspeedTmuxShell}"
cd "\$runtimeDir" || exit 1
if tmux has-session -t "\$sessionName" &> /dev/null; then
@@ -182,9 +180,7 @@ if [[ ! -x "\$binaryPath" ]]; then
exit 1
fi
tmux start-server
tmux set-option -g default-shell "\$tmuxShell"
tmux new-session -d -s "\$sessionName" 'exec ./TopSpeed.Server' || exit 1
tmux new-session -d -s "\$sessionName" /bin/bash -lc 'exec ./TopSpeed.Server' || exit 1
while tmux has-session -t "\$sessionName" &> /dev/null; do
sleep 5