From 8bceed7d9e740bd2535ab62a6763d5bd345d50e5 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 18 Mar 2017 11:29:28 -0400 Subject: [PATCH] Fixed uploads folder permissions set --- libs/local.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/local.js b/libs/local.js index 5263d2b4..a351a7e8 100644 --- a/libs/local.js +++ b/libs/local.js @@ -108,14 +108,14 @@ module.exports = { fs.ensureDirSync(path.resolve(ROOTPATH, appconfig.paths.data, './temp-upload')) if (os.type() !== 'Windows_NT') { - fs.chmodSync(path.resolve(ROOTPATH, appconfig.paths.data, './temp-upload'), '644') + fs.chmodSync(path.resolve(ROOTPATH, appconfig.paths.data, './temp-upload'), '755') } fs.ensureDirSync(path.resolve(ROOTPATH, appconfig.paths.repo)) fs.ensureDirSync(path.resolve(ROOTPATH, appconfig.paths.repo, './uploads')) if (os.type() !== 'Windows_NT') { - fs.chmodSync(path.resolve(ROOTPATH, appconfig.paths.repo, './uploads'), '644') + fs.chmodSync(path.resolve(ROOTPATH, appconfig.paths.repo, './uploads'), '755') } } catch (err) { winston.error(err)