added support for docker to run with a certain PUID and PGID

This commit is contained in:
JJ Kasper
2018-09-22 12:27:45 -05:00
parent 56f9ee318f
commit b47f3917bd
3 changed files with 32 additions and 15 deletions

View File

@@ -22,6 +22,8 @@ class Service {
fs.stat(path.join(this.docsDir, '.git'), async err => {
if (err && err.code === 'ENOENT') {
git.init().then(() => {
git.addConfig('user.name', 'mykb')
git.addConfig('user.email', 'mykb@localhost')
if (this.numInitDocs === 0) return
git.add('./*').then(() => git.commit('initial commit'))
})