Skip to content

Commit 9358fd1

Browse files
committed
Update install.sh
1 parent 3e8f44c commit 9358fd1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ansible/group_vars/all

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ PYGCCXML_VERSION: 1.0.0
66
NETANIM_VERSION: 3.105
77
QUAGGA_VERSION: 0.99.24
88
temp_location: "/tmp"
9+
home_location: "/root/OpenNet"

install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function Install_Ansible {
1616

1717
}
1818

19-
2019
function SSH_Config_Setup {
2120

2221
if [ ! -d $SSHDIR ]; then
@@ -34,7 +33,7 @@ function SSH_Config_Setup {
3433
fi
3534
for host in $hosts; do
3635
echo "***copying public key to $host"
37-
ssh-keyscan -H $host >> ~/.ssh/known_hosts
36+
ssh-keyscan -H $host >> $SSHDIR/known_hosts
3837
ssh-copy-id -i $SSHDIR/cluster_key.pub $user@$host &> /dev/null
3938
echo "***copying key pair to remote host"
4039
scp $SSHDIR/{cluster_key,cluster_key.pub,config} $user@$host:$SSHDIR
@@ -83,7 +82,7 @@ function Test_Network {
8382
function Install_OpenNet {
8483

8584
cd $ANSIBLE_PATH
86-
echo "home_location: \"$OPENNET_PATH\"" >> group_vars/all
85+
sed -e "s|home_location: \"\"|home_location: \"$OPENNET_PATH\"|" -i group_vars/all
8786
ansible-playbook playbook.yml
8887

8988
}

0 commit comments

Comments
 (0)