pmcf 6.31.2 → 6.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.31.2",
3
+ "version": "6.31.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -235,8 +235,19 @@ export class bind_key extends Base {
235
235
  addType(this);
236
236
  }
237
237
 
238
- get service() {
239
- return this.owner;
238
+ async packageContent(outputControl) {
239
+ await writeLines(
240
+ join(outputControl.dir, "etc/named/keys"),
241
+ `${this.name}.conf`,
242
+ [
243
+ `key "${this.name}" {`,
244
+ ` algorithm ${this.algorithm};`,
245
+ ` secret "${this.secret}";`,
246
+ "};"
247
+ ]
248
+ );
249
+
250
+ return true;
240
251
  }
241
252
  }
242
253
 
@@ -781,9 +792,14 @@ export class bind extends CoreService {
781
792
 
782
793
  const outputControl = { packageData, dir, permissions };
783
794
 
795
+ for (const key of this.keys.values()) {
796
+ await key.packageContent(outputControl);
797
+ hasContent = true;
798
+ }
799
+
784
800
  for (const acl of this.acls.values()) {
785
- const present = await acl.packageContent(outputControl);
786
- hasContent ||= present;
801
+ await acl.packageContent(outputControl);
802
+ hasContent = true;
787
803
  }
788
804
 
789
805
  for (const group of this.groups.values()) {