mirror of
https://github.com/caprover/caprover
synced 2026-05-03 18:20:32 +00:00
b7c114ed7d
* Update CHANGELOG.md * Update TERMS_AND_CONDITIONS.md * Update TERMS_AND_CONDITIONS.md * Adding script to clear pro config * Fixed https://github.com/caprover/caprover/issues/1863 * Closes https://github.com/caprover/caprover-pro/issues/3 * Updated the changelog * Fixed https://github.com/caprover/caprover/discussions/1859 * updated the changelogs * Fixed https://github.com/caprover/caprover/issues/1871 * Upped version - ready for hotfix
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
/*jshint esversion: 6 */
|
|
|
|
const fs = require('fs-extra')
|
|
const CONFIG_FILE_PATH = '/captain/data/config-captain.json'
|
|
|
|
const fileContent = JSON.parse(
|
|
fs.readFileSync(CONFIG_FILE_PATH, {
|
|
encoding: 'utf-8',
|
|
})
|
|
)
|
|
|
|
fs.writeFileSync(CONFIG_FILE_PATH + '.backup', JSON.stringify(fileContent))
|
|
|
|
fileContent.pro = {}
|
|
|
|
fs.writeFileSync(CONFIG_FILE_PATH, JSON.stringify(fileContent))
|