Change to relative path and /var/attachments to store

This commit is contained in:
Romulus Urakagi Tsai 2020-01-14 06:29:34 +00:00
parent 6ebd6defe9
commit d26bf04bfa
5 changed files with 31 additions and 27 deletions

View file

@ -291,6 +291,8 @@ if (Meteor.isServer) {
}
function storagePath(defaultPath) {
// FIXME
return '/var/attachments';
const storePath = process.env.ATTACHMENTS_STORE_PATH;
return storePath ? storePath : defaultPath;
}