Pulumi code for my server setup
0
fork

Configure Feed

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

remove mount.create option

i don't remember why i wanted to add this tbh

+1 -5
-3
lib/service/mounts.ts
··· 7 7 8 8 type CustomMountOpts = Partial<{ 9 9 kind: Input<"directory" | "file">; 10 - create: Input<boolean>; 11 10 }>; 12 11 13 12 export function _mount({ ··· 17 16 bindOptions, 18 17 readOnly = false, 19 18 kind = "directory", 20 - create = false, 21 19 }: Optional<MountOpts, "target" | "type">): MountOpts { 22 20 if (!source) { 23 21 throw Error("mount does not have source"); ··· 35 33 type, 36 34 bindOptions, 37 35 kind, 38 - create, 39 36 readOnly, 40 37 }; 41 38 }
+1 -2
lib/service/service.ts
··· 78 78 const mounts = pulumi.output(args.mounts).apply((mounts) => { 79 79 let i = 0; 80 80 for (const mount of mounts) { 81 - if (mount.type === "bind" && mount.source && mount.create) { 81 + if (mount.type === "bind" && mount.source) { 82 82 const dir = 83 83 mount.kind === "file" ? path.dirname(mount.source) : mount.source; 84 84 this.createRemoteDir(dir, name, i); ··· 86 86 } 87 87 88 88 delete mount.kind; 89 - delete mount.create; 90 89 } 91 90 92 91 // mounts.push({