Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
Victor Morales | 7abf1a8 | 2017-11-06 09:20:27 -0800 | [diff] [blame] | 3 | if [[ "$debug" == "True" ]]; then |
4 | set -o xtrace | ||||
5 | fi | ||||
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 6 | |
Victor Morales | 4ab71c1 | 2017-11-08 07:28:28 -0800 | [diff] [blame] | 7 | if [[ "$1" == "openstack" ]]; then |
8 | source /var/onap/openstack | ||||
9 | deploy_openstack | ||||
10 | exit | ||||
11 | fi | ||||
12 | |||||
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 13 | source /var/onap/functions |
14 | |||||
Victor Morales | 332d7d8 | 2017-11-06 11:51:37 -0800 | [diff] [blame] | 15 | update_repos |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 16 | create_configuration_files |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 17 | configure_bind |
18 | |||||
19 | for serv in $@; do | ||||
20 | source /var/onap/${serv} | ||||
21 | configure_service ${serv}_serv.sh | ||||
22 | init_${serv} | ||||
Victor Morales | fa9eb9c | 2017-12-18 09:56:13 -0800 | [diff] [blame^] | 23 | echo "source /var/onap/${serv}" >> ~/.bashrc |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 24 | done |
Victor Morales | 9d205bc | 2017-12-01 17:52:07 -0800 | [diff] [blame] | 25 | |
Victor Morales | fa9eb9c | 2017-12-18 09:56:13 -0800 | [diff] [blame^] | 26 | echo "source /var/onap/functions" >> ~/.bashrc |