@cerema/cadriciel 1.0.5 ā 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmd/init.js +0 -4
- package/lib/s3.js +2 -1
- package/package.json +1 -1
package/cmd/init.js
CHANGED
|
@@ -135,10 +135,6 @@ module.exports = function (program) {
|
|
|
135
135
|
console.log(
|
|
136
136
|
'______________________________________________________________'
|
|
137
137
|
);
|
|
138
|
-
fs.chmodSync(
|
|
139
|
-
process.cwd() + '/' + o.project + '/docker/config/init-db.sh',
|
|
140
|
-
'755'
|
|
141
|
-
);
|
|
142
138
|
console.log('\nš Happy coding !\n');
|
|
143
139
|
});
|
|
144
140
|
});
|
package/lib/s3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const os = require('os');
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const util = require('util');
|
|
4
|
-
const S3_URI = 's3.
|
|
4
|
+
const S3_URI = 's3.gra.io.cloud.ovh.net';
|
|
5
5
|
const Minio = require('minio');
|
|
6
6
|
|
|
7
7
|
const readFile = util.promisify(fs.readFile);
|
|
@@ -12,6 +12,7 @@ const S3 = async function (current_login) {
|
|
|
12
12
|
current_login.port = 443;
|
|
13
13
|
current_login.endPoint = S3_URI;
|
|
14
14
|
current_login.useSSL = true;
|
|
15
|
+
current_login.region='gra';
|
|
15
16
|
return new Minio.Client(current_login);
|
|
16
17
|
}
|
|
17
18
|
const r = await readFile(`${os.homedir}/.cadriciel/account.json`, 'utf-8');
|