Commit 189e7266 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Rename data folder to "duniter"

parent 18826c39
......@@ -8,15 +8,15 @@ var Q = require('q');
var qfs = require('q-io/fs');
var sqlite3 = require("sqlite3b").verbose();
const DEFAULT_DOMAIN = "ucoin_default";
const DEFAULT_HOME = (process.platform == 'win32' ? process.env.USERPROFILE : process.env.HOME) + '/.config/ucoin/';
const DEFAULT_DOMAIN = "duniter_default";
const DEFAULT_HOME = (process.platform == 'win32' ? process.env.USERPROFILE : process.env.HOME) + '/.config/duniter/';
let dir = module.exports = {
INSTANCE_NAME: getDomain(opts.mdb),
INSTANCE_HOME: getHomePath(opts.mdb, opts.home),
INSTANCE_HOMELOG_FILE: getLogsPath(opts.mdb, opts.home),
UCOIN_DB_NAME: 'ucoin',
UCOIN_DB_NAME: 'duniter',
WOTB_FILE: 'wotb.bin',
getHome: (profile, dir) => getHomePath(profile, dir),
......@@ -64,7 +64,7 @@ function someDelayFix() {
}
function getLogsPath(profile, dir) {
return path.join(getHomePath(profile, dir), 'ucoin.log');
return path.join(getHomePath(profile, dir), 'duniter.log');
}
function getHomePath(profile, dir) {
......
......@@ -73,7 +73,7 @@ logger.addHomeLogs = (home) => {
maxFiles: 3,
//zippedArchive: true,
json: false,
filename: path.join(home, 'ucoin.log'),
filename: path.join(home, 'duniter.log'),
timestamp: function() {
return moment().format();
}
......
......@@ -36,7 +36,7 @@ program
.version(pjson.version)
.usage('<command> [options]')
.option('--home <path>', 'Path to uCoin HOME (defaults to "$HOME/.config/ucoin").')
.option('--home <path>', 'Path to uCoin HOME (defaults to "$HOME/.config/duniter").')
.option('-d, --mdb <name>', 'Database name (defaults to "ucoin_default").')
.option('--autoconf', 'With `init` command, will guess the best network and key options witout aksing for confirmation')
......@@ -676,7 +676,7 @@ function commandLineConf(conf) {
function connect(callback, useDefaultConf) {
return function () {
var cbArgs = arguments;
var dbName = program.mdb || "ucoin_default";
var dbName = program.mdb || "duniter_default";
var dbHome = program.home;
var server = ucoin({ home: dbHome, name: dbName }, commandLineConf());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment