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 +1 -1
- package/src/services/bind.mjs +20 -4
package/package.json
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -235,8 +235,19 @@ export class bind_key extends Base {
|
|
|
235
235
|
addType(this);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
|
|
786
|
-
hasContent
|
|
801
|
+
await acl.packageContent(outputControl);
|
|
802
|
+
hasContent = true;
|
|
787
803
|
}
|
|
788
804
|
|
|
789
805
|
for (const group of this.groups.values()) {
|