pmcf 1.59.8 → 1.59.9
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/host.mjs +4 -0
- package/src/location.mjs +4 -12
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -359,6 +359,10 @@ export class Host extends Base {
|
|
|
359
359
|
result.properties.provides = [...this.provides];
|
|
360
360
|
result.properties.replaces = [`mf-${this.hostName}`, ...this.replaces];
|
|
361
361
|
result.properties.backup = "root/.ssh/known_hosts";
|
|
362
|
+
result.properties.hooks = new URL(
|
|
363
|
+
"host.install",
|
|
364
|
+
import.meta.url
|
|
365
|
+
).pathname;
|
|
362
366
|
|
|
363
367
|
result.sources.push(
|
|
364
368
|
new FileContentProvider(stagingDir + "/")[Symbol.asyncIterator]()
|
package/src/location.mjs
CHANGED
|
@@ -96,18 +96,10 @@ export class Location extends Owner {
|
|
|
96
96
|
new FileContentProvider(stagingDir + "/")[Symbol.asyncIterator]()
|
|
97
97
|
);
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
await copyFile(
|
|
105
|
-
new URL(install, import.meta.url),
|
|
106
|
-
join(stagingDir, install)
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
result.properties.install = install;
|
|
110
|
-
*/
|
|
99
|
+
result.properties.hooks = new URL(
|
|
100
|
+
"location.install",
|
|
101
|
+
import.meta.url
|
|
102
|
+
).pathname;
|
|
111
103
|
|
|
112
104
|
yield result;
|
|
113
105
|
}
|