From 30f4e6593afcd13286b2e08fbebac4edd530aa5d Mon Sep 17 00:00:00 2001 From: j180240 Date: Tue, 20 Sep 2016 16:36:25 +0800 Subject: update the license. Change-Id: Iae9b27b6423129c27dd1debfe20ac42c06129c06 Signed-off-by: jiaxiangli --- .../deployment/src/main/release/upgrade/init.sh | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 servicegateway/deployment/src/main/release/upgrade/init.sh (limited to 'servicegateway/deployment/src/main/release/upgrade/init.sh') diff --git a/servicegateway/deployment/src/main/release/upgrade/init.sh b/servicegateway/deployment/src/main/release/upgrade/init.sh deleted file mode 100644 index 799b7e4a..00000000 --- a/servicegateway/deployment/src/main/release/upgrade/init.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -#check user -CUR_PATH=$(cd `dirname $0`;pwd) -SCRIPT_PATH=$0 -IPMC_USER="`stat -c '%U' ${SCRIPT_PATH}`" -export IPMC_USER -CURRENT_USER="`/usr/bin/id -u -n`" -if [ "${IPMC_USER}" != "${CURRENT_USER}" ] -then - echo "only ${IPMC_USER} can execute this script." - exit 1 -fi -umask 027 - -cd $APP_ROOT -JAVA=$JAVA_HOME/bin/java - -DB_ID="ServiceGatewaydb" -SCRIPT=$APP_ROOT/init/ServiceGateway_tables_@{dbtype}.sql - -JVM_OPT="$JVM_OPT -Dlog.dir=$_APP_LOG_DIR" -JVM_OPT="$JVM_OPT -Dinit.appconfig=$APP_CONF_FILE" -JVM_OPT="$JVM_OPT -Dinit.approot=$APP_ROOT" -JVM_OPT="$JVM_OPT -Dinit.dataSourceId=$DB_ID" -JVM_OPT="$JVM_OPT -Dinit.script=$SCRIPT" -JVM_OPT="$JVM_OPT -Dinit.connectType=$1" -JVM_OPT="$JVM_OPT -Dinit.class=org.openo.baseservice.biz.init.impl.DBInitializer" - -CLASS_PATH="$APP_ROOT/lib/*:$APP_ROOT/webapps/ROOT/WEB-INF/lib/*:" -JVM_OPT="$JVM_OPT -classpath $CLASS_PATH" - -$JAVA $JVM_OPT org.openo.baseservice.biz.inittool.InitTool -result=$? -$CUR_PATH/../../../../manager/agent/tools/shscript/syslogutils.sh "$(basename $0)" "$result" "Execute($#):$CUR_PATH/$0 $@";exit $result -- cgit 1.2.3-korg