mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-03-31 23:14:30 +02:00
Fixed token issue, added OAuth2 including recipe and docs.
This commit is contained in:
@@ -220,9 +220,11 @@ func newScript() (*script, error) {
|
||||
s.storages = append(s.storages, azureBackend)
|
||||
}
|
||||
|
||||
if s.c.DropboxToken != "" {
|
||||
if s.c.DropboxRefreshToken != "" && s.c.DropboxAppKey != "" && s.c.DropboxAppSecret != "" {
|
||||
dropboxConfig := dropbox.Config{
|
||||
Token: s.c.DropboxToken,
|
||||
RefreshToken: s.c.DropboxRefreshToken,
|
||||
AppKey: s.c.DropboxAppKey,
|
||||
AppSecret: s.c.DropboxAppSecret,
|
||||
RemotePath: s.c.DropboxRemotePath,
|
||||
ConcurrencyLevel: s.c.DropboxConcurrencyLevel,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user