mirror of
https://github.com/LowganDev/PlayfinPS4.git
synced 2026-10-17 20:00:58 +02:00
14 lines
427 B
Bash
Executable File
14 lines
427 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Stops the test server (containers and channel encoders); the data stays in $DATA.
|
|
set -uo pipefail
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
export DATA=${DATA:-$HOME/.local/share/playfin-testserver}
|
|
export UID GID
|
|
GID=$(id -g)
|
|
docker compose -f "$HERE/compose.yml" down
|
|
for pidfile in "$DATA"/run/ch*.pid; do
|
|
[ -f "$pidfile" ] || continue
|
|
kill "$(cat "$pidfile")" 2>/dev/null
|
|
rm -f "$pidfile"
|
|
done
|