summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-19 21:32:28 +0200
committerGitHub <noreply@github.com>2020-05-19 21:32:28 +0200
commit1ea95a96cfbc6709f04b2690d8984f8dabea04eb (patch)
treeaf34a54305ff107a35a8176d9db3f581b3c64fe1
parentba06bfed4fc84b699689932eeb3af9b9be0f5cd7 (diff)
parent285b2ca75475600756b92d639fc188c291fdddeb (diff)
downloadvyos-1x-1ea95a96cfbc6709f04b2690d8984f8dabea04eb.tar.gz
vyos-1x-1ea95a96cfbc6709f04b2690d8984f8dabea04eb.zip
Merge pull request #413 from kroy-the-rabbit/patch-4
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 385ae460f..3e2b6430d 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
- /usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip"
+ sudo /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
- /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip"
+ sudo /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip"
((changes++))
;;