"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
drive: fix config system overwriting team drive ID - fixes #5454
Nick Craig-Wood807102ada265
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 29185b1cd..d1ec46173 100755--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -210,12 +210,19 @@ func init() {if opt.TeamDriveID == "" {return fs.ConfigConfirm("teamdrive_ok", false, "config_change_team_drive", "Configure this as a Shared Drive (Team Drive)?\n")}- return fs.ConfigConfirm("teamdrive_ok", false, "config_change_team_drive", fmt.Sprintf("Change current Shared Drive (Team Drive) ID %q?\n", opt.TeamDriveID))+ return fs.ConfigConfirm("teamdrive_change", false, "config_change_team_drive", fmt.Sprintf("Change current Shared Drive (Team Drive) ID %q?\n", opt.TeamDriveID))case "teamdrive_ok":if config.Result == "false" {m.Set("team_drive", "")return nil, nil}+ return fs.ConfigGoto("teamdrive_config")+ case "teamdrive_change":+ if config.Result == "false" {+ return nil, nil+ }+ return fs.ConfigGoto("teamdrive_config")+ case "teamdrive_config":f, err := newFs(ctx, name, "", m)if err != nil {return nil, errors.Wrap(err, "failed to make Fs to list Shared Drives")