aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-03 20:21:23 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-03 20:21:23 +0100
commit85db18914af4c393fe35c6b7f8dbbff96ae969fb (patch)
tree3fd17fcd327801f649b22b0eae61f30a49ef3178
parente3e62fbaaf69920a44d779e946e80949fbc55cac (diff)
downloadgovuk-mini-environment-admin-85db18914af4c393fe35c6b7f8dbbff96ae969fb.tar
govuk-mini-environment-admin-85db18914af4c393fe35c6b7f8dbbff96ae969fb.tar.gz
Make the ~/.config directory during provisioning
This ensures that it's owned by the ubuntu user.
-rw-r--r--terraform/aws/backend/main.tf1
1 files changed, 1 insertions, 0 deletions
diff --git a/terraform/aws/backend/main.tf b/terraform/aws/backend/main.tf
index e066034..66b273b 100644
--- a/terraform/aws/backend/main.tf
+++ b/terraform/aws/backend/main.tf
@@ -303,6 +303,7 @@ EOF
"sudo systemctl daemon-reload",
"sudo systemctl enable guix-daemon.service",
"sudo systemctl start guix-daemon.service",
+ "mkdir -p ~/.config", # Make the ~/.config directory, to ensure it's owned by ubuntu
<<EOF
if [ ! -d "/var/guix/profiles/per-user/ubuntu" ]; then
/var/guix/profiles/per-user/root/guix-profile/bin/guix package -i guile guix