1 # Copyright © 2017 Amdocs, Bell Canada, AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
17 # skip installation if build.info file is present (restarting an existing container)
18 if [[ -f /opt/app/policy/etc/build.info ]]; then
19 echo "Found existing installation, will not reinstall"
20 . /opt/app/policy/etc/profile.d/env.sh
22 # replace conf files from installer with environment-specific files
23 # mounted from the hosting VM
24 if [[ -d config ]]; then
30 . /opt/app/policy/etc/profile.d/env.sh
32 # install policy keystore
33 mkdir -p $POLICY_HOME/etc/ssl
34 cp config/policy-keystore $POLICY_HOME/etc/ssl
36 if [[ -x config/drools-tweaks.sh ]] ; then
37 echo "Executing tweaks"
38 # file may not be executable; running it as an
39 # argument to bash avoids needing execute perms.
40 bash config/drools-tweaks.sh
43 # sql provisioning scripts should be invoked here.
46 echo "Starting processes"