From 2180fdb227d7ad939b16af6ee5ac49e455237f18 Mon Sep 17 00:00:00 2001 From: Cory Latschkowski Date: Sun, 29 Dec 2024 15:16:01 -0600 Subject: [PATCH] fix: tor-hs.init hs hook processing Signed-off-by: Cory Latschkowski --- net/tor-hs/files/tor-hs.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/tor-hs/files/tor-hs.init b/net/tor-hs/files/tor-hs.init index aab531b1ca4a77..30e3a13c79f47b 100755 --- a/net/tor-hs/files/tor-hs.init +++ b/net/tor-hs/files/tor-hs.init @@ -75,14 +75,14 @@ parse_hs_conf_hooks() { local name hook_script enable_hs hostname_file local config="$1" - config_get enable_hs "$config" Enabled 0 + config_get_bool enable_hs "$config" Enabled 0 config_get hook_script "$config" HookScript config_get name "$config" Name hostname="$HS_DIR_PATH/$name/hostname" # check if we should run hook_script - if [ "$enable_hs" = "true" ] && [ -x "$hook_script" ] && [ -f "$hostname" ] ; then + if [ "$enable_hs" = "1" ] && [ -x "$hook_script" ] && [ -f "$hostname" ] ; then hostname_uri=$(cat "$hostname") # call hook script $hook_script "--update-onion" "$hostname_uri"