From 9676e10546deeafb745103741c4f15b0392a00de Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Tue, 4 May 2021 12:04:17 +0200 Subject: [PATCH] Set chmod on authorized_keys --- distillery/provision.sh | 1 + distillery/rebuild.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/distillery/provision.sh b/distillery/provision.sh index 6d71b8b..ecff763 100755 --- a/distillery/provision.sh +++ b/distillery/provision.sh @@ -58,6 +58,7 @@ mkdir -p "$INSTANCE_DATA_DIR" mkdir -p "$INSTANCE_DATA_DIR/.composer" mkdir -p "$INSTANCE_DATA_DIR/data" touch "$INSTANCE_DATA_DIR/authorized_keys" +chmod a+rw "$INSTANCE_DATA_DIR/authorized_keys" # Generate some more random credentials, this time for drupal. # We again make use of the randompw alias. diff --git a/distillery/rebuild.sh b/distillery/rebuild.sh index 0708e3e..d4711b0 100644 --- a/distillery/rebuild.sh +++ b/distillery/rebuild.sh @@ -20,6 +20,7 @@ read -r INSTANCE_BASE_DIR MYSQL_DATABASE MYSQL_USER GRAPHDB_REPO GRAPHDB_USER << log_info " => Touching authorized_keys file" touch "$INSTANCE_BASE_DIR/data/authorized_keys" +chmod a+rw "$INSTANCE_BASE_DIR/data/authorized_keys" log_info " => Updating compose files" install_resource_dir "compose/barrel" "$INSTANCE_BASE_DIR"