Pulumi code for my server setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

handle enabled/disabled flag earlier to avoid creating dirs

+6 -6
+6 -6
lib/service/service.ts
··· 75 75 76 76 this.commandConnection = args.commandConnection; 77 77 78 + if (!args.enabled || args.disabled) { 79 + this.enabled = false; 80 + this.ip = pulumi.output(undefined); 81 + return; 82 + } 83 + 78 84 const mounts = pulumi.output(args.mounts).apply((mounts) => { 79 85 let i = 0; 80 86 for (const mount of mounts) { ··· 97 103 98 104 return mounts; 99 105 }); 100 - 101 - if (!args.enabled || args.disabled) { 102 - this.enabled = false; 103 - this.ip = pulumi.output(undefined); 104 - return; 105 - } 106 106 107 107 const imageManifest = docker.getRegistryImageOutput( 108 108 { name: args.image ?? `lscr.io/linuxserver/${name}` },