aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/vagrant_utils/postinstall.sh
blob: 4a014dc70c53b5bffbd503eb729e7e974d7a41ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

if [[ "$debug" == "True" ]]; then
    set -o xtrace
fi

if [[ "$1" == "openstack" ]]; then
    source /var/onap/openstack
    deploy_openstack
    exit
fi

source /var/onap/functions

update_repos
create_configuration_files
configure_bind

for serv in $@; do
    source /var/onap/${serv}
    configure_service ${serv}_serv.sh
    init_${serv}
    echo "source /var/onap/${serv}" >> ~/.profile
done

echo "source /var/onap/functions" >> ~/.profile