diff --git a/greenlock-store-sequelize.js b/greenlock-store-sequelize.js index 0e45b91..fdd59a6 100644 --- a/greenlock-store-sequelize.js +++ b/greenlock-store-sequelize.js @@ -22,7 +22,7 @@ module.exports.create = function (config={}) { sequelize = new Sequelize(config.storeDatabaseUrl,{ logging: false }); } else { sequelize = new Promise(function (resolve, reject) { - confDir = confDir.replace(/~\//, require('os').homedir()); + confDir = confDir.replace(/~\//, require('os').homedir() + '/'); mkdirp(confDir, function (err) { if (err) { reject(err); return; } resolve(new Sequelize({ dialect: 'sqlite', storage: confDir + '/db.sqlite3', logging: false }));