#!/bin/bash if [ ! -d ~/.ssh ]; then mkdir ~/.ssh; chmod 700 ~/.ssh chown root:root ~/.ssh fi cat "$GLUSTERD_WORKING_DIR"/geo-replication/common_secret.pem.pub >> ~/.ssh/authorized_keys