Change the valve gamedir check a bit for compatibility (?)
This commit is contained in:
parent
a94cc00378
commit
7103ed542e
4 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ 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" ]
|
if [ ! "$GAMEDIR" = "valve" ]
|
||||||
then
|
then
|
||||||
systemctl --user disable freehl@$GAMEDIR
|
systemctl --user disable freehl@$GAMEDIR
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ 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" ]
|
if [ ! "$GAMEDIR" = "valve" ]
|
||||||
then
|
then
|
||||||
systemctl --user enable freehl@$GAMEDIR
|
systemctl --user enable freehl@$GAMEDIR
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ 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" ]
|
if [ ! "$GAMEDIR" = "valve" ]
|
||||||
then
|
then
|
||||||
systemctl --user restart freehl@$GAMEDIR
|
systemctl --user restart freehl@$GAMEDIR
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -6,7 +6,7 @@ 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" ]
|
if [ ! "$GAMEDIR" = "valve" ]
|
||||||
then
|
then
|
||||||
systemctl --user stop freehl@$GAMEDIR
|
systemctl --user stop freehl@$GAMEDIR
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue