From cef90cbdf4d6c07571c54a9abf11ed37648c6cbc Mon Sep 17 00:00:00 2001 From: Cory Latschkowski Date: Sun, 29 Dec 2024 15:35:03 -0600 Subject: [PATCH] tor-hs: update logic to align with other packages Signed-off-by: Cory Latschkowski --- net/tor-hs/files/tor-hs.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tor-hs/files/tor-hs.init b/net/tor-hs/files/tor-hs.init index 30e3a13c79f47b..ccfd9961ea96de 100755 --- a/net/tor-hs/files/tor-hs.init +++ b/net/tor-hs/files/tor-hs.init @@ -82,7 +82,7 @@ parse_hs_conf_hooks() { hostname="$HS_DIR_PATH/$name/hostname" # check if we should run hook_script - if [ "$enable_hs" = "1" ] && [ -x "$hook_script" ] && [ -f "$hostname" ] ; then + if [ "$enable_hs" -gt 0 ] && [ -x "$hook_script" ] && [ -f "$hostname" ] ; then hostname_uri=$(cat "$hostname") # call hook script $hook_script "--update-onion" "$hostname_uri"