Set chmod on authorized_keys

This commit is contained in:
Tom Wiesing 2021-05-04 12:04:17 +02:00
parent 7d1801004d
commit 9676e10546
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
2 changed files with 2 additions and 0 deletions

View file

@ -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.

View file

@ -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"