Index: scripts/start.sh =================================================================== diff -u -re554eebb79659077383c506d90cecbc125855894 -rde1f90d2d9095ad6ddacc8bd4f9b3be6c7418440 --- scripts/start.sh (.../start.sh) (revision e554eebb79659077383c506d90cecbc125855894) +++ scripts/start.sh (.../start.sh) (revision de1f90d2d9095ad6ddacc8bd4f9b3be6c7418440) @@ -41,6 +41,7 @@ SERVER_DRT_WS_PRODUCT="production" SERVER_DRT_WS_STAGING="staging" SERVER_DRT_WS_QUALITY="quality" +SERVER_DRT_WS_QUALITY2="quality2" GLOBALS_CONFIG_MDFY="CloudSync_DRT_SERVER_IP=" GLOBALS_CONFIG_LINE="CloudSync_DRT_SERVER_IP=.*" @@ -83,25 +84,25 @@ echo "Device setup Mode : Update Only" return fi - + getServerIP echo "DRT Server IP Address : $SERVER_IP" - + getServerWS echo "DRT Server Environment: $SERVER_WS" - + # create the conf file local config_env_json="$SERVER_CONFIG_FILE" local config_json="$SERVER_CONFIG_FILE" - - + + # creat the config.json file cp "$SERVER_CONFIG_JSON_WS""_""$SERVER_WS"".""$SERVER_CONFIG_EXT" $SERVER_CONFIG_JSON if [[ ! -e $SERVER_CONFIG_JSON ]]; then echo "The file $SERVER_CONFIG_JSON cannot be created" exit 0 fi - + # setting up the DRT Server IP address #If the server IP is not given or is invalid will be asked to enter and the defualt Diality prefered will be suggested. #If the server IP is valid and accepted then change the CloudSync conf file @@ -133,6 +134,7 @@ echo " - production" echo " - staging" echo " - quality" + echo " - quality2" echo " For example : -Wproduction" exit 0 fi @@ -291,16 +293,17 @@ function validWS() { if [[ -z $SERVER_WS ]]; then return 1; fi - + case $SERVER_WS in "$SERVER_DRT_WS_PRODUCT");; "$SERVER_DRT_WS_STAGING");; "$SERVER_DRT_WS_QUALITY");; + "$SERVER_DRT_WS_QUALITY2");; *) echo "The entered server environment is not valid [$SERVER_WS]" return 1 esac - + return 0 }