fhl-server-configs/stop-services.sh

13 lines
236 B
Bash
Executable File

#!/bin/sh
systemctl --user stop freehl
find ./ -type f -name "server.cfg" -print | while read LINE
do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
if [ ! "$GAMEDIR" = "valve" ]
then
systemctl --user stop freehl@$GAMEDIR
fi
done