Ignore 'valve' in the other scripts as far as mods are concerned

This commit is contained in:
Marco Cawthorne 2023-11-18 16:16:19 -08:00
parent 0207013b81
commit adb1298df4
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 15 additions and 3 deletions

View File

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

View File

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

View File

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