Commit 626650d2 authored by Ted Trask's avatar Ted Trask

Tested by removing expected packages, files, and directories. Fixed resulting bugs.

git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1683 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent 1c7f0f18
......@@ -149,8 +149,7 @@ function setIPs(iplist)
end
for name in pairs(reverseIPs) do
-- need to create the file
local f = io.popen("touch "..baseurl.."ip/"..name)
f:close()
fs.create_file(baseurl.."ip/"..name)
end
end
return iplist
......@@ -184,8 +183,7 @@ function setNewDomain(domain)
domain.value.domain.errtxt = "Domain already exists"
domain.errtxt = "Failed to create domain"
else
local f = io.popen("touch "..baseurl.."servers/"..domain.value.domain.value)
f:close()
fs.create_file(baseurl.."servers/"..domain.value.domain.value)
domain.descr = "Created domain"
end
return domain
......
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