WANG před 6 roky
rodič
revize
3a8347bd07

+ 11 - 2
examcloud-core-examwork-starter/shell/start.sh

@@ -14,8 +14,15 @@ if [ ! -z "$PID_LIST" ]; then
     exit -1
 fi
 
-APP_ARGS=$APP_ARGS" --startup.securityCode="$$
- 
+if [ "$1" ];then
+    echo "startupCode:"$1;
+else
+    echo "[ERROR] : no arguments"
+    exit -1
+fi
+
+APP_ARGS=$APP_ARGS" --examcloud.startup.startupCode="$1
+
 echo "java options:"
 echo "$JAVA_OPTS"
 echo "args:"
@@ -27,3 +34,5 @@ echo "starting......"
 
 exit 0
 
+
+

+ 0 - 1
examcloud-core-examwork-starter/shell/stop.sh

@@ -6,7 +6,6 @@ APP_MAIN_JAR="examcloud-core-examwork-starter-"$APP_VERSION"-SNAPSHOT.jar"
 
 PID_LIST=`ps -ef|grep $APP_MAIN_JAR|grep java|awk '{print $2}'`
 
-
 if [ ! -z "$PID_LIST" ]; then
     echo "Runnable jar is $APP_MAIN_JAR."
     for PID in $PID_LIST 

+ 1 - 1
examcloud-core-examwork-starter/shell/version

@@ -1 +1 @@
-master
+2019