add delete directory param

This commit is contained in:
dominic 2018-03-05 09:20:20 +08:00
parent 25eb330321
commit e537c1140e

View File

@ -48,6 +48,10 @@ for i in "${in_arr[@]}"; do
PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i" PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i"
done done
if [ -z "$PLUGIN_DELETE_DIR" ] && [ "$PLUGIN_DELETE_DIR" = true ]; then
lftp -e 'rm -r $PLUGIN_DEST_DIR' -u $FTP_USERNAME,$FTP_PASSWORD $PLUGIN_HOSTNAME
fi
lftp -e "set xfer:log 1; \ lftp -e "set xfer:log 1; \
set ftp:ssl-allow $PLUGIN_SECURE; \ set ftp:ssl-allow $PLUGIN_SECURE; \
set ftp:ssl-force $PLUGIN_SECURE; \ set ftp:ssl-force $PLUGIN_SECURE; \