diff options
-rw-r--r-- | provisioning-model.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) |