summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/peer_gsec_create.in
blob: ef630bd4417dfc0a49c93f7045f45e00b8b5e372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

prefix=@prefix@
exec_prefix=@exec_prefix@

if [ ! -f "$GLUSTERD_WORKING_DIR"/geo-replication/secret.pem.pub ]; then
    \rm -rf "$GLUSTERD_WORKING_DIR"/geo-replication/secret.pem*
    ssh-keygen -N '' -f "$GLUSTERD_WORKING_DIR"/geo-replication/secret.pem > /dev/null
fi

output=`echo command=\"@libexecdir@/glusterfs/gsyncd\" " "``cat "$GLUSTERD_WORKING_DIR"/geo-replication/secret.pem.pub`
echo $output