Skip to content

Commit ba319f5

Browse files
committed
refactor: update startup script to use classpath for application execution
1 parent 09c078a commit ba319f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/shells/start-cordys.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
bash /shells/init-directories.sh
44

5-
export JAVA_CLASSPATH=/app:/app/lib/*
5+
MAIN_CLASS="cn.cordys.Application"
66
export CRM_VERSION=`cat /tmp/CRM_VERSION`
77

8-
exec java ${JAVA_OPTIONS} -jar /app/cordys-crm.jar
8+
exec java ${JAVA_OPTIONS} -cp "/app/cordys-crm.jar:/app/lib/*" ${MAIN_CLASS}

0 commit comments

Comments
 (0)