hubl/postinstall.js
2019-05-14 17:32:42 +02:00

8 lines
211 B
JavaScript

const fs = require('fs');
const { exec } = require('child_process');
if (!fs.existsSync('src/config.json')) {
const cmd = `rsync -ru src/config.sample.json src/config.json`;
console.log(cmd);
exec(cmd);
}