Commit 9a3aaf42 authored by Xiaowu Zhang's avatar Xiaowu Zhang

collect.sh: fix invalidate json

parent 8f9a2e70
......@@ -11,9 +11,9 @@ timestamp_cmd='date +"%Y/%m/%d %H:%M %Z"'
flb_pid=$!
sleep 1 # let fluent-bit be ready to listen to the log file
echo "{beginning_date: \"$(eval "$timestamp_cmd")\"}" >> $log_file
echo "{\"beginning_date\": \"$(eval "$timestamp_cmd")\"}" >> $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/bin $log_file
/sbin/metadata-collect-agent $NEWROOT/usr/sbin $log_file
echo "{end_date: \"$(eval "$timestamp_cmd")\", end_marker: \"fluentbit_end\"}" >> $log_file
echo "{\"end_date\": \"$(eval "$timestamp_cmd")\", \"end_marker\": \"fluentbit_end\"}" >> $log_file
wait $flb_pid
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment