fhl-server-configs/restart-services.sh

10 lines
219 B
Bash
Executable File

#!/bin/sh
systemctl restart freehl
find ./ -type f -name "server.cfg" -print | while read LINE
do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
echo systemctl restart freehl@$GAMEDIR
##systemctl restart "$FILE"
done