From 9d6af17f697cd9bd5243876e354ceb319543d517 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 9 Mar 2023 10:44:47 -0300 Subject: [PATCH] ci(fix): create and give permissions to mix directories --- scripts/ct/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ct/run.sh b/scripts/ct/run.sh index 17319dc51..279b979a3 100755 --- a/scripts/ct/run.sh +++ b/scripts/ct/run.sh @@ -211,8 +211,8 @@ if [ "$STOP" = 'no' ]; then set -e fi -# rebar and hex cache directory need to be writable by $DOCKER_USER -docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "mkdir -p /.cache && chown $DOCKER_USER /.cache" +# rebar, mix and hex cache directory need to be writable by $DOCKER_USER +docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "mkdir -p /.cache /.hex /.mix && chown $DOCKER_USER /.cache /.hex /.mix" # need to initialize .erlang.cookie manually here because / is not writable by $DOCKER_USER docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "openssl rand -base64 16 > /.erlang.cookie && chown $DOCKER_USER /.erlang.cookie && chmod 0400 /.erlang.cookie"