mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
Merge branch 'master' into 'master'
fix: Allow migrations with a minimal config See merge request les/gancio!50
This commit is contained in:
commit
e5946a518a
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ let config = {
|
||||||
const configContent = fs.readFileSync(config_path)
|
const configContent = fs.readFileSync(config_path)
|
||||||
config = Object.assign(config, JSON.parse(configContent))
|
config = Object.assign(config, JSON.parse(configContent))
|
||||||
config.status = 'CONFIGURED'
|
config.status = 'CONFIGURED'
|
||||||
if (!config.hostname) {
|
if (!config.hostname && config.baseurl) {
|
||||||
config.hostname = new URL.URL(config.baseurl).hostname
|
config.hostname = new URL.URL(config.baseurl).hostname
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -50,4 +50,4 @@ let config = {
|
||||||
}
|
}
|
||||||
|
|
||||||
config.load()
|
config.load()
|
||||||
module.exports = config
|
module.exports = config
|
||||||
|
|
Loading…
Reference in a new issue