diff --git a/net/tor-hs/files/tor-hs.init b/net/tor-hs/files/tor-hs.init index aab531b1ca4a7..30e3a13c79f47 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"