diff --git a/disable-services.sh b/disable-services.sh index a811ddc..71a8871 100755 --- a/disable-services.sh +++ b/disable-services.sh @@ -5,5 +5,9 @@ systemctl disable freehl find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - systemctl --user disable freehl@$GAMEDIR + + if [ "$GAMEDIR" != "valve" ] + then + systemctl --user disable freehl@$GAMEDIR + fi done \ No newline at end of file diff --git a/enable-services.sh b/enable-services.sh index e68e894..31b5e89 100755 --- a/enable-services.sh +++ b/enable-services.sh @@ -5,5 +5,9 @@ systemctl --user enable freehl find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - systemctl --user enable freehl@$GAMEDIR + + if [ "$GAMEDIR" != "valve" ] + then + systemctl --user enable freehl@$GAMEDIR + fi done \ No newline at end of file diff --git a/restart-services.sh b/restart-services.sh index 53aca0d..370c8c6 100755 --- a/restart-services.sh +++ b/restart-services.sh @@ -5,5 +5,9 @@ systemctl --user restart freehl find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - systemctl --user restart freehl@$GAMEDIR + + if [ "$GAMEDIR" != "valve" ] + then + systemctl --user restart freehl@$GAMEDIR + fi done \ No newline at end of file