aboutsummaryrefslogtreecommitdiffstats
path: root/servicegateway/deployment/src/main/release/init/post_install.sh
diff options
context:
space:
mode:
authorj180240 <jiaxiangli@huawei.com>2016-09-14 15:00:54 +0800
committerj180240 <jiaxiangli@huawei.com>2016-09-14 15:00:54 +0800
commitd089cf2631c2d647b97977bff905a2bdbff93986 (patch)
tree50bc400d59665099b1c137c009ac6a77c3e88b13 /servicegateway/deployment/src/main/release/init/post_install.sh
parentfd3c0d4674628bdb922984838803dbac5161e400 (diff)
upload the servicegateway code .
Change-Id: I3fa83416412e9ef282bd03f45e011133965367c5 Signed-off-by: jiaxiangli <jiaxiangli@huawei.com>
Diffstat (limited to 'servicegateway/deployment/src/main/release/init/post_install.sh')
-rw-r--r--servicegateway/deployment/src/main/release/init/post_install.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/servicegateway/deployment/src/main/release/init/post_install.sh b/servicegateway/deployment/src/main/release/init/post_install.sh
new file mode 100644
index 00000000..959acc51
--- /dev/null
+++ b/servicegateway/deployment/src/main/release/init/post_install.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#check user
+if [ "root" = "`/usr/bin/id -u -n`" ];then
+ echo "root has been forbidden to execute the shell."
+ exit 1
+fi
+
+if [[ -z ${APP_ROOT} ]];then
+ echo "APP_ROOT is empty."
+ exit 1
+fi
+
+if [[ -z ${_APP_LOG_DIR} ]];then
+ echo "_APP_LOG_DIR is empty."
+ exit 1
+fi
+
+#HORNETQ_CONF=$APP_ROOT/etc
+
+#chmod 400 $HORNETQ_CONF/engine.json