mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-20 10:51:46 +01: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:
@@ -557,6 +557,9 @@ ftp_backup() {
|
||||
check_result "$E_PARSING" "$error"
|
||||
fi
|
||||
|
||||
if [ -z $BPATH ]; then
|
||||
BPATH="/";
|
||||
fi
|
||||
|
||||
# Debug info
|
||||
echo -e "$(date "+%F %T") Remote: ftp://$HOST$BPATH/$user.$date.tar"
|
||||
|
||||
Reference in New Issue
Block a user