From 8807efe8bb443c13405db9d37b5e8b7c994790a4 Mon Sep 17 00:00:00 2001
From: Thierry Martinez <Thierry.Martinez@inria.fr>
Date: Tue, 14 Feb 2023 01:26:47 +0100
Subject: [PATCH] chown ~ci/.ssh

---
 cloud-init.sh.tftpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cloud-init.sh.tftpl b/cloud-init.sh.tftpl
index 4b9621a..2b4d6de 100644
--- a/cloud-init.sh.tftpl
+++ b/cloud-init.sh.tftpl
@@ -7,6 +7,7 @@
   echo 'ci ALL=(ALL) NOPASSWD:ALL' >/etc/sudoers.d/90-ci
   mkdir -p -m 700 ~ci/.ssh
   echo ${SSH_PUBLIC_KEY} >>~ci/.ssh/authorized_keys
+  chown -R ci:ci ~ci/.ssh
   # GitLab needs a recent version of `gitlab-runner` to be compatible with
   # the instance running on gitlab.inria.fr. The version packaged by default
   # on Ubuntu is regularly out of date.
-- 
GitLab