From adb1298df4b11718a2c52ca129e8db34c8b62638 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 18 Nov 2023 16:16:19 -0800 Subject: [PATCH] Ignore 'valve' in the other scripts as far as mods are concerned --- disable-services.sh | 6 +++++- enable-services.sh | 6 +++++- restart-services.sh | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) 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