diff --git a/backend/stack.ts b/backend/stack.ts index a535e04..26b49ca 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -147,10 +147,9 @@ export class Stack { // Write or overwrite the compose.yaml fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML); - if(process.env.PUID && process.env.PGID) - { - var uid: number = Number(process.env.PUID); - var gid: number = Number(process.env.PGID); + if (process.env.PUID && process.env.PGID) { + const uid = Number(process.env.PUID); + const gid = Number(process.env.PGID); fs.lchownSync(dir, uid, gid); fs.chownSync(path.join(dir, this._composeFileName), uid, gid); }