summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/peer_add_secret_pub.in
blob: c036cf3341674f30534de7dcf44e7177dd2665b8 (plain)
1
2
3
4
5
6
7
8
9
#!/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