pmcf 6.65.1 → 6.65.2

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.65.1",
3
+ "version": "6.65.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -109,8 +109,8 @@ export class base extends core {
109
109
  return this.owner?.network;
110
110
  }
111
111
 
112
- get smtp() {
113
- return this.owner?.smtp;
112
+ get smtpServer() {
113
+ return this.owner?.smtpServer;
114
114
  }
115
115
 
116
116
  get domain() {
@@ -181,7 +181,6 @@ export class base extends core {
181
181
  return this._priority ?? this.owner?.priority;
182
182
  }
183
183
 
184
-
185
184
  get services() {
186
185
  return this.owner?.services || new Map();
187
186
  }
package/src/owner.mjs CHANGED
@@ -33,6 +33,11 @@ export class owner extends ServiceOwner {
33
33
  networkInterfaces: networkInterfaces_attribute,
34
34
  owners: owners_attribute,
35
35
  country: { ...string_attribute_writable, name: "country" },
36
+ smtpServer: {
37
+ ...string_attribute_writable,
38
+ name: "smtpServer",
39
+ deferredExpression: true
40
+ },
36
41
  domain: { ...string_attribute_writable, name: "domain" },
37
42
  domains: { ...string_set_attribute_writable, name: "domains" },
38
43
  timezone: { ...string_attribute_writable, name: "timezone" },
@@ -193,14 +198,6 @@ export class owner extends ServiceOwner {
193
198
  return "admin@" + this.domain;
194
199
  }
195
200
 
196
- get smtp() {
197
- return this._smtp;
198
- }
199
-
200
- set smtp(value) {
201
- this._smtp = value;
202
- }
203
-
204
201
  _domain;
205
202
 
206
203
  set domain(value) {
@@ -92,10 +92,10 @@ export class keepalived extends CoreService {
92
92
 
93
93
  const extra = [];
94
94
 
95
- const smtp = this.smtp;
95
+ const smtpServer = this.smtpServer;
96
96
 
97
- if (smtp) {
98
- extra.push(` smtp_server ${smtp.address()}`);
97
+ if (smtpServer) {
98
+ extra.push(` smtp_server ${smtpServer.address}`);
99
99
  }
100
100
 
101
101
  const cfg = [