Skip to content

Commit

Permalink
tor-hs: update logic to align with other packages
Browse files Browse the repository at this point in the history
Signed-off-by: Cory Latschkowski <[email protected]>
  • Loading branch information
codekow authored Dec 29, 2024
1 parent 2180fdb commit cef90cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tor-hs/files/tor-hs.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cef90cb

Please sign in to comment.