mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Making v-backup-user able to upload backup to FTP if FTP folder is not set
Before this fix v-backup-user was unable to upload backup to FTP if $BPATH (FTP folder) is not set
This commit is contained in:
parent
0cbb3613df
commit
367d0b34ef
1 changed files with 3 additions and 0 deletions
|
@ -557,6 +557,9 @@ ftp_backup() {
|
||||||
check_result "$E_PARSING" "$error"
|
check_result "$E_PARSING" "$error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z $BPATH ]; then
|
||||||
|
BPATH="/";
|
||||||
|
fi
|
||||||
|
|
||||||
# Debug info
|
# Debug info
|
||||||
echo -e "$(date "+%F %T") Remote: ftp://$HOST$BPATH/$user.$date.tar"
|
echo -e "$(date "+%F %T") Remote: ftp://$HOST$BPATH/$user.$date.tar"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue