aboutsummaryrefslogtreecommitdiffstats
path: root/servicegateway/deployment/src/main/release/init/post_install.sh
blob: 959acc51008c4c90426afd57a474905c8707d90d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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