fhl-server-configs/stop-services.sh

13 lines
235 B
Bash
Raw Normal View History

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