From e79ae76866b6f74417bcb30b529f64e782ff7306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Mon, 4 Apr 2022 21:51:32 +0200 Subject: [PATCH] Unset the right variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- advanced/Templates/pihole-FTL.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Templates/pihole-FTL.service b/advanced/Templates/pihole-FTL.service index 2254b2ea..5512937a 100644 --- a/advanced/Templates/pihole-FTL.service +++ b/advanced/Templates/pihole-FTL.service @@ -17,7 +17,7 @@ getFTLPID() { FTL_PID="$(cat "$FTL_PID_FILE")" # Exploit prevention: unset the variable if there is malicious content # Verify that the value read from the file is numeric - expr "$FTL_PID" : "[^[:digit:]]" > /dev/null && unset pid + expr "$FTL_PID" : "[^[:digit:]]" > /dev/null && unset FTL_PID fi # If FTL is not running, or the PID file contains malicious stuff, substitute