pmcf 3.19.5 → 3.19.6

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": "3.19.5",
3
+ "version": "3.19.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -498,7 +498,7 @@ export class Host extends ServiceOwner {
498
498
  for (const service of this.services) {
499
499
  if (service.systemdConfigs) {
500
500
  for (const { serviceName, configFileName, content } of asArray(
501
- service.systemdConfigs(this.name)
501
+ service.expand(service.systemdConfigs(this.name))
502
502
  )) {
503
503
  await writeLines(dir, configFileName, sectionLines(...content));
504
504
 
package/src/service.mjs CHANGED
@@ -89,6 +89,14 @@ export class Service extends Base {
89
89
  return ServiceTypeDefinition;
90
90
  }
91
91
 
92
+ get isTemplate() {
93
+ // TODO
94
+ if (this.fullName.startsWith("/services")) {
95
+ return true;
96
+ }
97
+ return super.isTemplate;
98
+ }
99
+
92
100
  toString() {
93
101
  return `${super.toString()}[${this.type}]`;
94
102
  }