-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
lftpd/etc/init.d/lftp_rdir_syncd+.sh
Line 135 in b55a4aa
| !sh ../etc/rename_files_pre.sh $DATAEXT $PREEXT || exit |
repeat --until-ok -d $SYNCTIME put -E go && echo put_ok
rm go
!sh ../etc/rename_files_pre.sh $DATAEXT $PREEXT || exit
mput -c -E *$DATAEXT$PREEXT # interrupt here
# files are left unrenamed and this file will be overridden by next 'go'
source rename_remote_norm.lftp
!rm rename_remote_norm.lftprename_files_pre.sh handles such case only if there are no new files with $DATAEXT
for f in *$1
do case $f in
"*"*) # no DATAEXT files, list DATAEXT PREEXT prefixed, if any
for f in *$1$2
do case $f in
"*"*) exit 1;;
*) echo "mv $f ${f%$2}";;
esac
done
exit
;;
*) mv "$f" "$f$2"
echo "mv $f$2 $f"
;;
esac
doneThus after any unclean shutdown empty/repair 'go' cycle must be done in first place.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels