mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
19 lines
448 B
CoffeeScript
19 lines
448 B
CoffeeScript
|
fs = require('fs')
|
||
|
|
||
|
module.exports = ->
|
||
|
try
|
||
|
fs.unlinkSync(process.env.DATABASE_PATH)
|
||
|
|
||
|
try
|
||
|
fs.unlinkSync(process.env.DATABASE_PATH_2)
|
||
|
|
||
|
try
|
||
|
fs.unlinkSync(process.env.DATABASE_PATH_3)
|
||
|
|
||
|
try
|
||
|
fs.unlinkSync(process.env.LED_FILE)
|
||
|
|
||
|
try
|
||
|
fs.writeFileSync('./test/data/config.json', fs.readFileSync('./test/data/testconfig.json'))
|
||
|
fs.writeFileSync('./test/data/config-apibinder.json', fs.readFileSync('./test/data/testconfig-apibinder.json'))
|