diff --git a/bigbluebutton/scalelite_post_publish.rb b/bigbluebutton/scalelite_post_publish.rb index fdc3197e..f334bc21 100755 --- a/bigbluebutton/scalelite_post_publish.rb +++ b/bigbluebutton/scalelite_post_publish.rb @@ -72,7 +72,7 @@ end puts("Transferring recording archive to #{spool_dir}") - system('rsync', '--verbose', '--protect-args', *extra_rsync_opts, archive_file, spool_dir) \ + system('rsync', '--verbose', '--remove-source-files', '--protect-args', *extra_rsync_opts, archive_file, spool_dir) \ || raise('Failed to transfer recording archive') # Delete recording after transfer @@ -85,6 +85,4 @@ File.write("#{recording_dir}/status/published/#{meeting_id}-sender.done", "Published #{meeting_id}") puts('Recording transferring to Scalelite ends') -ensure - FileUtils.rm_f(archive_file) end