#!/bin/bash#check userif["root"="`/usr/bin/id -u -n`"];thenecho"root has been forbidden to execute the shell."exit1fiif[[ -z ${APP_ROOT}]];thenecho"APP_ROOT is empty."exit1fiif[[ -z ${_APP_LOG_DIR}]];thenecho"_APP_LOG_DIR is empty."exit1fi#HORNETQ_CONF=$APP_ROOT/etc#chmod 400 $HORNETQ_CONF/engine.json