mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Updated Custom Post Processing Scripts (markdown)
parent
f13ac54ddd
commit
c15618f77b
1 changed files with 13 additions and 12 deletions
|
@ -104,23 +104,24 @@ Symlinking is preferable over hardlinking in most cases as the root movie folder
|
|||
|
||||
PERMPATH="$radarr_moviefile_path"
|
||||
LINKPATH="$radarr_moviefile_sourcepath"
|
||||
if [ -f "$LINKPATH" ];
|
||||
then
|
||||
|
||||
if [[ -f "$LINKPATH" ]]; then
|
||||
sleep 1
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ORIGFILESIZE=$(stat -c%s "$LINKPATH")
|
||||
PERMFILESIZE=$(stat -c%s "$PERMPATH")
|
||||
|
||||
sleep 30
|
||||
while [ $PERMFILESIZE != $ORIGFILESIZE ]
|
||||
do
|
||||
|
||||
while [[ $PERMFILESIZE != $ORIGFILESIZE ]]; do
|
||||
sleep 60
|
||||
PERMFILESIZE=$(stat -c%s "$PERMPATH")
|
||||
done
|
||||
if [ $PERMFILESIZE == $ORIGFILESIZE ]
|
||||
then
|
||||
|
||||
if [[ $PERMFILESIZE == $ORIGFILESIZE ]]; then
|
||||
rm "$LINKPATH"
|
||||
ln -s "$PERMPATH" "$LINKPATH"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue