Skip to content
Snippets Groups Projects
Commit 93a64b21 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove lock on fail

parent 6108a065
No related branches found
No related tags found
No related merge requests found
......@@ -121,10 +121,12 @@ function peertube_import_from_syncthing {
echo " peertubetitle=\$(basename \"\$video_file\" | awk -F '.' '{print \$1}' | sed 's|_| |g' | sed 's|-| |g')";
echo " if $nodecmd \$import_script -n \"\$peertubetitle\" \$peertubensfw \$peertubeprivate -u \"\$peertubedomain\" -U \"\$peertubeuser\" --password \"\$peertubepassword\" -f \"\$video_file\"; then";
echo " echo \"\$video_file\" >> /root/.peertube_uploaded";
echo ' rm /root/.peertube.lock';
echo " exit 0";
echo ' else';
echo " failed_uploads=\$((failed_uploads+1))";
echo " if [ \$failed_uploads -gt 1 ]; then";
echo ' rm /root/.peertube.lock';
echo ' exit 0';
echo ' fi';
echo ' fi';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment