Skip to content

Commit

Permalink
feat(chart): delete file after upload (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doofus100500 committed Jan 25, 2024
1 parent b9c8494 commit ae518bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/selenium-grid/configs/uploader/rclone/entry_point.sh
Expand Up @@ -27,6 +27,10 @@ do
else [ "$FILE" != "" ] && [ "$DESTINATION" != "" ];
echo "Uploading ${FILE} to ${DESTINATION}"
rclone --config ${UPLOAD_CONFIG_DIRECTORY}/${UPLOAD_CONFIG_FILE_NAME} ${UPLOAD_COMMAND} ${UPLOAD_OPTS} "${FILE}" "${DESTINATION}"
if [ $? -eq 0 ];
then
rm -rf $FILE
fi
fi
if [ -f ${SE_VIDEO_FOLDER}/force_exit ] && [ ! -s ${SE_VIDEO_FOLDER}/uploadpipe ];
then
Expand Down

0 comments on commit ae518bc

Please sign in to comment.