fix unlink calls

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 128b922873
commit 5d53c41db7

@ -119,8 +119,12 @@ function launch(req, res) {
process.stdout.write(' "./nodebb restart" to restart NodeBB\n');
async.parallel([
async.apply(fs.unlink(path.join(__dirname, '../public/installer.css'))),
async.apply(fs.unlink(path.join(__dirname, '../public/installer.min.js'))),
function (next) {
fs.unlink(path.join(__dirname, '../public/installer.css'), next);
},
function (next) {
fs.unlink(path.join(__dirname, '../public/installer.min.js'), next);
},
], function (err) {
if (err) {
winston.warn('Unable to remove installer files');

Loading…
Cancel
Save