diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-16 21:24:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-16 21:24:16 +0000 |
commit | 626650d251bb64ee7109faa84df0573ae658c544 (patch) | |
tree | 4e5d03c4c1acce1dd4ab07f672c16dd1edd8a7a9 | |
parent | 1c7f0f184aa7407a97f0d81a6954007bab66e6eb (diff) | |
download | acf-dnscache-626650d251bb64ee7109faa84df0573ae658c544.tar.bz2 acf-dnscache-626650d251bb64ee7109faa84df0573ae658c544.tar.xz |
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
-rw-r--r-- | dnscache-model.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dnscache-model.lua b/dnscache-model.lua index 6ceac36..e36e3fd 100644 --- a/dnscache-model.lua +++ b/dnscache-model.lua @@ -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 |