Fix linting issues

This commit is contained in:
RichyHBM 2023-11-19 22:50:35 +00:00
parent 9f6a3eea32
commit a4ea716ee8

View file

@ -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);
}