#!/bin/bash
#
-# Copyright 2016 ZTE Corporation.
+# Copyright 2016-2017 ZTE Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
password=$2
port=$3
host=$4
-echo "start init extsys db"
+echo "start init esr db"
main_path=$HOME/../
-mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-common-extsys-createobj.sql
+mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-aai-esr-createobj.sql
sql_result=$?
if [ $sql_result != 0 ] ; then
- echo "failed to init extsys database!"
+ echo "failed to init esr database!"
exit 1
fi
-echo "init extsys database success!"
+echo "init esr database success!"
exit 0