summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-05-20 08:50:23 +0700
committerGitHub <noreply@github.com>2020-05-20 08:50:23 +0700
commit560dd978fdea64e9e339f520b68a8e012bcade8e (patch)
tree220abd57bb69ee8d662dcb85a9c479b92d83bd66
parent7c55de11ca140fd8eed980c0c9db6302e1a05974 (diff)
parentc5bb9e9e89a80eee5ff732287d6ac66db8bf9ba5 (diff)
downloadvyos-1x-560dd978fdea64e9e339f520b68a8e012bcade8e.tar.gz
vyos-1x-560dd978fdea64e9e339f520b68a8e012bcade8e.zip
Merge pull request #415 from kroy-the-rabbit/revert-413-patch-4
Revert "T2465: vyos-hostsd-client needs sudo"
-rwxr-xr-xsrc/system/on-dhcp-event.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh
index 3e2b6430d..385ae460f 100755
--- a/src/system/on-dhcp-event.sh
+++ b/src/system/on-dhcp-event.sh
@@ -43,13 +43,13 @@ case "$action" in
exit 1
fi
# add host
- sudo /usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip"
+ /usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip"
((changes++))
;;
release) # delete mapping for released address
# delete host
- sudo /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip"
+ /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip"
((changes++))
;;