Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: don't open browser when service account...

Ansh Mittalb456be43034d
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index e634f1954..5f20ebabe 100755
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -199,7 +199,7 @@ func init() {
m.Set("root_folder_id", "appDataFolder")
}
- if opt.ServiceAccountFile == "" {
+ if opt.ServiceAccountFile == "" && opt.ServiceAccountCredentials == "" {
err = oauthutil.Config(ctx, "drive", name, m, driveConfig, nil)
if err != nil {
log.Fatalf("Failed to configure token: %v", err)