summaryrefslogtreecommitdiffstats
path: root/src/main/scripts/common_functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scripts/common_functions.sh')
-rw-r--r--src/main/scripts/common_functions.sh15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/main/scripts/common_functions.sh b/src/main/scripts/common_functions.sh
index 1fac7ce..e132798 100644
--- a/src/main/scripts/common_functions.sh
+++ b/src/main/scripts/common_functions.sh
@@ -1,19 +1,8 @@
-#!/bin/ksh
+#!/bin/sh
#
# Common functions that can be used throughout multiple scripts
# In order to call these functions, this file needs to be sourced
-# Checks if the user that is currently running is aaiadmin
-check_user(){
-
- userid=$( id | cut -f2 -d"(" | cut -f1 -d")" )
-
- if [ "${userid}" != "aaiadmin" ]; then
- echo "You must be aaiadmin to run $0. The id used $userid."
- exit 1
- fi
-}
-
# Sources the profile and sets the project home
source_profile(){
PROJECT_HOME=/opt/app/aai-graphadmin
@@ -49,7 +38,7 @@ execute_spring_jar(){
JAVA_OPTS="${JAVA_OPTS} ${JAVA_POST_OPTS}";
"${JAVA_HOME}/bin/java" ${JVM_OPTS} ${JAVA_OPTS} -jar ${EXECUTABLE_JAR} "$@" || {
- echo "Failed to run the tool $0 successfully";
+ echo "Failed to run the tool $0";
exit 1;
}
}