diff options
author | Mograine <ghiot.pierre@gmail.com> | 2019-10-28 15:21:05 +0300 |
---|---|---|
committer | Mograine <ghiot.pierre@gmail.com> | 2019-10-28 15:21:05 +0300 |
commit | 193ff38ab3d6fd49a9912c5e07cd8e098267bf3a (patch) | |
tree | 6e69e5f2942cc7dd4dcc332b6cdaf27e704c99ad /advanced | |
parent | bb8dbe9da5d703d8a15328ee33c0bda01959e5c4 (diff) |
Allow more precise deletion by passing ip as parameter
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
Diffstat (limited to 'advanced')
-rwxr-xr-x | advanced/Scripts/webpage.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index e990cc22..dc2c83af 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -572,8 +572,9 @@ AddCustomDNSAddress() { } RemoveCustomDNSAddress() { - host="${args[2]}" - sed -i "/.*${host}/d" "${dnscustomfile}" + ip="${args[2]}" + host="${args[3]}" + sed -i "/${ip} ${host}/d" "${dnscustomfile}" } main() { |