From 9f9514bc52f96d2a0b9192ad10b2d1174cf254d7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Jan 2011 10:03:55 +0000 Subject: Moved templates to /etc/provisioning/templates --- provisioning-model.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/provisioning-model.lua b/provisioning-model.lua index 8356f93..848c7ad 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -15,7 +15,7 @@ local DatabaseUser = "postgres" local DatabasePassword local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin " -local baseurl = "/etc/provisioning/" +local baseurl = "/etc/provisioning/templates/" local env local con @@ -329,6 +329,7 @@ list_templates = function() reversed[t.filename] = i end -- Get the file stats for each template and add in any template files that aren't in the DB + fs.create_directory(baseurl) for f in posix.files(baseurl) do local file = baseurl..f local details = fs.stat(file) -- cgit v1.2.3