Remove update flag file

This commit is contained in:
fruchti 2019-10-21 12:20:04 +02:00
parent 813f69b32f
commit 44ba526405

View file

@ -1,14 +1,8 @@
#!/bin/sh
output_owner=fruchti:data
updateflagfile=/flags/mp3-transcode
lockfile=/flags/mp3-transcode-lock
if [ ! -f "$updateflagfile" ] && [ ! "$1" = "-f" ] ; then
echo "No update needed. Exiting."
exit
fi
if [ -f "$lockfile" ] ; then
echo "Another instance is already running. Exiting."
echo "If you are certain this is the only instance, you can delete the lock file $lockfile"
@ -112,5 +106,4 @@ done
echo "Done Transcoding."
IFS=$SAVEIFS
rm -f "$updateflagfile"
rm -f "$lockfile"