diff options
author | David Mehren | 2021-02-12 23:22:01 +0100 |
---|---|---|
committer | GitHub | 2021-02-12 23:22:01 +0100 |
commit | 34faec890c92f89466f4618514762e0d8da8d2ef (patch) | |
tree | 7ba4d2ebdaf05e31ebe3d39eac4f5042a94f7830 /bin | |
parent | fbac2d7ef8be325635da78e0b762cfb813c1fca2 (diff) | |
parent | 252141560f8ffcf88f18347f2161b5f3c78ffe12 (diff) |
Merge pull request #866 from hedgedoc/renovate/master-minio-7.x
Diffstat (limited to '')
-rwxr-xr-x | bin/migrate_from_fs_to_minio | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/migrate_from_fs_to_minio b/bin/migrate_from_fs_to_minio index 104c84c2..72d7c70c 100755 --- a/bin/migrate_from_fs_to_minio +++ b/bin/migrate_from_fs_to_minio @@ -18,7 +18,7 @@ if (config.dbURL) { const minioClient = new Minio.Client({ endPoint: config.minio.endPoint, port: config.minio.port, - secure: config.minio.secure, + useSSL: config.minio.secure, accessKey: config.minio.accessKey, secretKey: config.minio.secretKey }); @@ -49,7 +49,7 @@ fs.readdir(config.uploadsPath, function (err, files) { if (err) { console.log('Unable to scan directory: ' + err); process.exit(); - } + } files.forEach(function (file) { key = path.join('uploads', file) filePath = path.join(config.uploadsPath, file) |