pmcf 6.60.1 → 6.60.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 +1 -1
- package/src/core-service.mjs +2 -1
- package/src/utils.mjs +3 -14
package/package.json
CHANGED
package/src/core-service.mjs
CHANGED
|
@@ -109,7 +109,7 @@ export class CoreService extends base {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
get credentials() {
|
|
112
|
-
return this.mapFromDirections(["this", "extends"], "_credentials")
|
|
112
|
+
return this.mapFromDirections(["this", "extends"], "_credentials");
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
get network() {
|
|
@@ -302,6 +302,7 @@ export class CoreService extends base {
|
|
|
302
302
|
await writeLines(
|
|
303
303
|
join(dir, `etc/systemd/system/${name}.service.d`),
|
|
304
304
|
`credentials.conf`,
|
|
305
|
+
"[Service]",
|
|
305
306
|
lines
|
|
306
307
|
);
|
|
307
308
|
}
|
package/src/utils.mjs
CHANGED
|
@@ -35,24 +35,13 @@ export function domainFromDominName(domainName, defaultDomain) {
|
|
|
35
35
|
return defaultDomain;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export async function writeLines(dir, name, lines) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
switch (typeof lines) {
|
|
42
|
-
case "undefined":
|
|
43
|
-
return;
|
|
44
|
-
case "string":
|
|
45
|
-
data = lines;
|
|
46
|
-
break;
|
|
47
|
-
|
|
48
|
-
default:
|
|
49
|
-
data = [...lines]
|
|
38
|
+
export async function writeLines(dir, name, ...lines) {
|
|
39
|
+
const data = lines
|
|
50
40
|
.flat()
|
|
51
41
|
.filter(line => line !== undefined)
|
|
52
42
|
.map(l => l + "\n")
|
|
53
43
|
.join("");
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
|
|
56
45
|
const full = join(dir, name);
|
|
57
46
|
dir = dirname(full);
|
|
58
47
|
name = basename(full);
|