40852dfafad2dbbbad4d252409976c0dd735af61
[ci-management.git] / iec-fdn-install.sh
1 #!/bin/bash
2 set -e
3
4 sleep 10
5 echo "Start IEC installation:"
6 rm -rf iec
7 rm -rf ~/.ssh/known_hosts
8
9 git clone "https://gerrit.akraino.org/r/iec"
10
11 cd iec/src/foundation/scripts
12
13 sed -i.bak 's/10.169.36.152/10.1.0.50/g' ./config
14 sed -i "/^K8S_MASTERPW=/cK8S_MASTERPW=\"root\"" ./config
15 sed -i "/^HOST_USER=/cHOST_USER=\${HOST_USER:-root}" ./config
16 sed -i "s/10.169.40.106,123456/10.1.0.51,root\"\n\"10.1.0.52,root/g" ./config
17 HOST_USER=root
18 export HOST_USER
19 ./startup.sh
20
21
22 exit 0