fhl-server-configs/disable-services.sh

13 lines
235 B
Bash
Raw Normal View History

2023-11-18 23:59:11 +00:00
#!/bin/sh
systemctl disable 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 disable freehl@$GAMEDIR
fi
2023-11-18 23:59:11 +00:00
done