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)
systemctl --user disable freehl@$GAMEDIR
if [ "$GAMEDIR" != "valve" ]
then
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)
systemctl --user enable freehl@$GAMEDIR
if [ "$GAMEDIR" != "valve" ]
then
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)
systemctl --user restart freehl@$GAMEDIR
if [ "$GAMEDIR" != "valve" ]
then
systemctl --user restart freehl@$GAMEDIR
fi
done done