diff --git a/images/gitlab-pages/config/main.tf b/images/gitlab-pages/config/main.tf index 380d2136b..272d3b480 100644 --- a/images/gitlab-pages/config/main.tf +++ b/images/gitlab-pages/config/main.tf @@ -18,23 +18,41 @@ output "config" { packages = var.extra_packages } accounts = module.accts.block + environment = { + "HOME" = "/home/git" + "LANG" = "C.UTF-8" + "CONFIG_TEMPLATE_DIRECTORY" = "/etc/gitlab-pages" + } entrypoint = { - command = "/scripts/start-pages" + command = "/scripts/entrypoint.sh" } paths = [{ path = "/etc/gitlab-pages" type = "directory" permissions = 493 + uid = module.accts.uid + gid = module.accts.gid recursive = true }, { path = "/srv/gitlab-pages" type = "directory" permissions = 493 + uid = module.accts.uid + gid = module.accts.gid recursive = true }, { path = "/var/log/gitlab-pages" type = "directory" permissions = 493 + uid = module.accts.uid + gid = module.accts.gid + recursive = true + }, { + path = "/home/git" + type = "directory" + permissions = 493 + uid = module.accts.uid + gid = module.accts.gid recursive = true }] })