summaryrefslogtreecommitdiff
path: root/bin/migrate_from_fs_to_minio
diff options
context:
space:
mode:
Diffstat (limited to 'bin/migrate_from_fs_to_minio')
-rwxr-xr-xbin/migrate_from_fs_to_minio4
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)