Skip to content

Commit f23ea52

Browse files
authored
FTP Download path corrected (hestiacp#2636)
ftp_download() path corrected to be the same as sftp_download() function
1 parent d5ff1d0 commit f23ea52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

func/backup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ ftp_download() {
172172
if [ -z "$PORT" ]; then
173173
PORT='21'
174174
fi
175+
cd $BACKUP
175176
if [ -z $BPATH ]; then
176177
ftpc "get $1"
177178
else
@@ -490,4 +491,4 @@ b2_delete(){
490491
b2 authorize-account $B2_KEYID $B2_KEY > /dev/null 2>&1
491492

492493
b2 delete-file-version $1/$2 > /dev/null 2>&1
493-
}
494+
}

0 commit comments

Comments
 (0)