Index: scripts/globals.sh =================================================================== diff -u -rc8ccc2c34a91572cf00b6f79bb8af6f0d4bd56c6 -rb5fe18834b25750b3efaf54fcbbaf69d36ed46e5 --- scripts/globals.sh (.../globals.sh) (revision c8ccc2c34a91572cf00b6f79bb8af6f0d4bd56c6) +++ scripts/globals.sh (.../globals.sh) (revision b5fe18834b25750b3efaf54fcbbaf69d36ed46e5) @@ -509,11 +509,16 @@ # removing the previous treatment logs so the new buff starts with fresh sequence echo "Removing CloudSync I/O buff" local CLOUDSYNC_LOGS="$SDCARD_MNT/$CLOUDSYNC_FOLDER/" + local CLOUDSYNC_CONF="$CLOUDSYNC_PATH/cloudsync/config/" + local CLOUDSYNC_MODE="" + if [[ "$APPLICATION_PARAMS" == *"-E"* ]]; then + CLOUDSYNC_MODE="registration" + fi rm $(find $CLOUDSYNC_LOGS -name "*[_inp,_out].buf" ) 1>> $POSTOUT 2>> $POSTERR - + rm $(find $CLOUDSYNC_CONF -name "config_*.json" ) 1>> $POSTOUT 2>> $POSTERR echo "Executing the CloudSync" cd $CLOUDSYNC_PATH - ./cs.py start debug & + ./cs.py start debug $CLOUDSYNC_MODE & CLOUDSYNC_STATUS="$(ps ax | grep -e cs.py -e cloud_sync.py | grep -v grep)" if [ -n "$CLOUDSYNC_STATUS" ]; then post_log_pass "$POSTMSG_CLOUDSYNC$POSTMSG_POSTFIX_PASSED"