add AAF configuration files
[appc/deployment.git] / installation / appc / src / main / scripts / startODL.sh
index d684d03..573db70 100644 (file)
@@ -4,7 +4,7 @@
 # ============LICENSE_START=======================================================
 # APPC
 # ================================================================================
-# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # ============LICENSE_END=========================================================
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
 ###
 
 #
@@ -98,6 +97,14 @@ then
                echo "Installing APPC JSON DGs converted to XML using dg-loader"
                ${APPC_HOME}/svclogic/bin/install-converted-dgs.sh
        fi
+       
+       echo "Adding a property system.properties for AAF cadi.properties location"
+       echo "" >> ${ODL_HOME}/etc/system.properties
+       echo "cadi_prop_files=${APPC_HOME}/data/properties/cadi.properties" >> ${ODL_HOME}/etc/system.properties
+       echo "" >> ${ODL_HOME}/etc/system.properties
+       
+       echo "Copying a working version of the shiro configuration into the opendaylight etc folder"
+       cp ${APPC_HOME}/data/shiro.ini ${ODL_HOME}/etc/shiro.ini
 
        echo "Restarting OpenDaylight"
        ${ODL_HOME}/bin/stop