From b82b5794bcb385e847f633da08c32819abf17551 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 1 Apr 2014 11:19:12 -0400 Subject: [PATCH] add copyright widget on fresh install --- src/install.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index defed0ea8a..b2e799c33f 100644 --- a/src/install.js +++ b/src/install.js @@ -1,13 +1,14 @@ 'use strict'; var async = require('async'), - utils = require('../public/src/utils.js'), fs = require('fs'), url = require('url'), path = require('path'), prompt = require('prompt'), winston = require('winston'), nconf = require('nconf'), + utils = require('../public/src/utils.js'), + db = require('./database.js'), install = { questions: [{ @@ -348,6 +349,9 @@ var async = require('async'), }); }, next); }, + function (next) { + db.setObjectField('widgets:global', 'footer', "[{\"widget\":\"html\",\"data\":{\"html\":\"\",\"title\":\"\",\"container\":\"\"}}]", next); + }, function (next) { require('./upgrade').upgrade(next); }