aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant_utils/postinstall.sh
blob: 24a55db65acc48cc64b96164aeb3cdd6c2463e5d (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
27
#!/bin/bash

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

source /var/onap/functions

if [[ $no_proxy && $no_proxy != *$IP_ADDRESS* ]]; then
    export no_proxy=$no_proxy,$IP_ADDRESS
fi
if [[ $NO_PROXY && $NO_PROXY != *$IP_ADDRESS* ]]; then
    export NO_PROXY=$NO_PROXY,$IP_ADDRESS
fi

update_repos
create_configuration_files
configure_bind

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

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