Эх сурвалжийг харах

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
dpeca 8 жил өмнө
parent
commit
367d0b34ef
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      bin/v-backup-user

+ 3 - 0
bin/v-backup-user

@@ -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"