~ibmcharmers/charms/trusty/ibm-mobilefirst-server/trunk

« back to all changes in this revision

Viewing changes to hooks/helper-relation-joined

  • Committer: Sunitha Radharapu
  • Date: 2015-11-13 06:06:43 UTC
  • Revision ID: sradhara@in.ibm.com-20151113060643-c4yrwrxr92kxxcpf
Final ibm-mobilefirst-server charm code checkin

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
set -e
3
3
juju-log "IBM MFSVR: Start helper-relation-joined."
 
4
 
4
5
SSH_PATH=/root/.ssh
5
6
if [ ! -f  $SSH_PATH/id_rsa.pub ]; then
6
7
        juju-log "IBM MFSVR: Setting up SSH keys."
9
10
 
10
11
relation-set key="`cat $SSH_PATH/id_rsa.pub`"
11
12
relation-set finger_print="`ssh-keygen -l -f $SSH_PATH/id_rsa.pub`"
 
13
 
12
14
juju-log "IBM MFSVR: End helper-relation-joined."