Code Review
/
holmes
/
rule-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed some errors in shell scripts
[holmes/rule-management.git]
/
rulemgt-standalone
/
src
/
main
/
assembly
/
bin
/
run.sh
diff --git
a/rulemgt-standalone/src/main/assembly/bin/run.sh
b/rulemgt-standalone/src/main/assembly/bin/run.sh
index
5b645b1
..
49ffc53
100644
(file)
--- a/
rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/
rulemgt-standalone/src/main/assembly/bin/run.sh
@@
-60,7
+60,7
@@
fi
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
-if [ ! -z ${TESTING}
-a
${TESTING} = 1 ]; then
+if [ ! -z ${TESTING}
] && [
${TESTING} = 1 ]; then
if [ ! -z ${HOST_IP} ]; then
export HOSTNAME=${HOST_IP}:9101
else
if [ ! -z ${HOST_IP} ]; then
export HOSTNAME=${HOST_IP}:9101
else
@@
-69,7
+69,7
@@
if [ ! -z ${TESTING} -a ${TESTING} = 1 ]; then
fi
export DB_PORT=5432
fi
export DB_PORT=5432
-if [ ! -z ${URL_JDBC}
-a
`expr index $URL_JDBC :` != 0 ]; then
+if [ ! -z ${URL_JDBC}
] && [
`expr index $URL_JDBC :` != 0 ]; then
export DB_PORT="${URL_JDBC##*:}"
fi
echo DB_PORT=$DB_PORT
export DB_PORT="${URL_JDBC##*:}"
fi
echo DB_PORT=$DB_PORT