Commit 9caa47ea authored by Ted Trask's avatar Ted Trask

Started process of removing as many io.popen calls as possible. Not complete.

git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1695 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent f456432d
......@@ -143,8 +143,7 @@ function setIPs(iplist)
reverseIPs[name] = nil
else
-- need to delete the file
local f = io.popen("rm "..baseurl.."ip/"..name)
f:close()
os.remove(baseurl.."ip/"..name)
end
end
for name in pairs(reverseIPs) do
......@@ -227,8 +226,7 @@ function deleteDomain(domainname)
else
for i,name in ipairs(domains.value) do
if name == domainname then
local f = io.popen("rm "..baseurl.."servers/"..name)
f:close()
os.remove(baseurl.."servers/"..name)
cmdresult.errtxt = nil
cmdresult.value = "Domain deleted"
break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment