mirror of
https://github.com/louislam/dockge.git
synced 2024-12-04 07:54:02 +00:00
Fix linting issues
This commit is contained in:
parent
9f6a3eea32
commit
a4ea716ee8
1 changed files with 3 additions and 4 deletions
|
@ -147,10 +147,9 @@ export class Stack {
|
||||||
|
|
||||||
// Write or overwrite the compose.yaml
|
// Write or overwrite the compose.yaml
|
||||||
fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML);
|
fs.writeFileSync(path.join(dir, this._composeFileName), this.composeYAML);
|
||||||
if(process.env.PUID && process.env.PGID)
|
if (process.env.PUID && process.env.PGID) {
|
||||||
{
|
const uid = Number(process.env.PUID);
|
||||||
var uid: number = Number(process.env.PUID);
|
const gid = Number(process.env.PGID);
|
||||||
var gid: number = Number(process.env.PGID);
|
|
||||||
fs.lchownSync(dir, uid, gid);
|
fs.lchownSync(dir, uid, gid);
|
||||||
fs.chownSync(path.join(dir, this._composeFileName), uid, gid);
|
fs.chownSync(path.join(dir, this._composeFileName), uid, gid);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue