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
|
||||
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
|
||||
|
||||
if [ "$GAMEDIR" != "valve" ]
|
||||
if [ ! "$GAMEDIR" = "valve" ]
|
||||
then
|
||||
systemctl --user disable freehl@$GAMEDIR
|
||||
fi
|
||||
|
|
|
@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
|
|||
do
|
||||
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
|
||||
|
||||
if [ "$GAMEDIR" != "valve" ]
|
||||
if [ ! "$GAMEDIR" = "valve" ]
|
||||
then
|
||||
systemctl --user enable freehl@$GAMEDIR
|
||||
fi
|
||||
|
|
|
@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
|
|||
do
|
||||
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
|
||||
|
||||
if [ "$GAMEDIR" != "valve" ]
|
||||
if [ ! "$GAMEDIR" = "valve" ]
|
||||
then
|
||||
systemctl --user restart freehl@$GAMEDIR
|
||||
fi
|
||||
|
|
|
@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
|
|||
do
|
||||
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
|
||||
|
||||
if [ "$GAMEDIR" != "valve" ]
|
||||
if [ ! "$GAMEDIR" = "valve" ]
|
||||
then
|
||||
systemctl --user stop freehl@$GAMEDIR
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue