Remove update flag file
This commit is contained in:
parent
813f69b32f
commit
44ba526405
|
@ -1,14 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
output_owner=fruchti:data
|
output_owner=fruchti:data
|
||||||
updateflagfile=/flags/mp3-transcode
|
|
||||||
lockfile=/flags/mp3-transcode-lock
|
lockfile=/flags/mp3-transcode-lock
|
||||||
|
|
||||||
if [ ! -f "$updateflagfile" ] && [ ! "$1" = "-f" ] ; then
|
|
||||||
echo "No update needed. Exiting."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$lockfile" ] ; then
|
if [ -f "$lockfile" ] ; then
|
||||||
echo "Another instance is already running. Exiting."
|
echo "Another instance is already running. Exiting."
|
||||||
echo "If you are certain this is the only instance, you can delete the lock file $lockfile"
|
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."
|
echo "Done Transcoding."
|
||||||
IFS=$SAVEIFS
|
IFS=$SAVEIFS
|
||||||
|
|
||||||
rm -f "$updateflagfile"
|
|
||||||
rm -f "$lockfile"
|
rm -f "$lockfile"
|
||||||
|
|
Loading…
Reference in a new issue