summaryrefslogtreecommitdiffstats
path: root/src/main/scripts/preDataRestore.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scripts/preDataRestore.sh')
-rw-r--r--src/main/scripts/preDataRestore.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/scripts/preDataRestore.sh b/src/main/scripts/preDataRestore.sh
index c176a1a..ba58b26 100644
--- a/src/main/scripts/preDataRestore.sh
+++ b/src/main/scripts/preDataRestore.sh
@@ -1,19 +1,18 @@
-#!/bin/ksh
+#!/bin/sh
#
# This script does just the first two steps of our normal dataRestoreFromSnapshot script.
-# This should only be needed if we are trouble-shooting and need to run step 3 (the
+# This should only be needed if we are trouble-shooting and need to run step 3 (the
# actual call to dataSnapshot) separately with different input params.
#
# This script does these two steps:
-# 1) clear out whatever data and schema are currently in the db
+# 1) clear out whatever data and schema are currently in the db
# 2) rebuild the schema (using the SchemaGenerator)
-#
+#
COMMON_ENV_PATH=$( cd "$(dirname "$0")" ; pwd -P )
. ${COMMON_ENV_PATH}/common_functions.sh
start_date;
-check_user;
if [ "$#" -lt 1 ]; then
echo "Illegal number of parameters"
@@ -30,7 +29,7 @@ if [ "$?" -ne "0" ]; then
echo "Problem clearing out database."
exit 1
fi
-
+
#### Step 2) rebuild the db-schema
execute_spring_jar org.onap.aai.schema.GenTester ${PROJECT_HOME}/resources/logback.xml "GEN_DB_WITH_NO_DEFAULT_CR"
if [ "$?" -ne "0" ]; then
@@ -39,6 +38,6 @@ if [ "$?" -ne "0" ]; then
fi
-
+
end_date;
exit 0