@deslop/opm 0.1.1223 → 0.1.1227
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/dist/server.js +7 -4
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -71810,7 +71810,7 @@ function layerKeyValueStore(directory) {
|
|
|
71810
71810
|
unwrap$8(map$6(dataDirectory, layerKeyValueStore));
|
|
71811
71811
|
const layerProtocol = mergeAll$1(layerSchemaBinary(), succeed$6(MaxBodySize)(mebibytes(10)));
|
|
71812
71812
|
const layerTelemetry = unwrap$8(gen(function* () {
|
|
71813
|
-
const name = yield*
|
|
71813
|
+
const name = (yield* packageMetadata).name;
|
|
71814
71814
|
return match$8(yield* option(String$5("OTEL_URL")), {
|
|
71815
71815
|
onNone: () => empty$10,
|
|
71816
71816
|
onSome: (url) => layerOtlp(`${name}-server`, url, "server")
|
|
@@ -71926,17 +71926,20 @@ function systemctl(...args) {
|
|
|
71926
71926
|
const unitDirectory = gen(function* () {
|
|
71927
71927
|
return (yield* Path$1).join(yield* String$5("HOME"), ".config", "systemd", "user");
|
|
71928
71928
|
});
|
|
71929
|
-
const install = fnUntraced(function* (name, command) {
|
|
71929
|
+
const install = fnUntraced(function* (name, command, options) {
|
|
71930
71930
|
const fs = yield* FileSystem;
|
|
71931
71931
|
const path = yield* Path$1;
|
|
71932
71932
|
const home = yield* String$5("HOME");
|
|
71933
71933
|
const directory = yield* unitDirectory;
|
|
71934
71934
|
const unit = `deslop-${name}.service`;
|
|
71935
71935
|
yield* fs.makeDirectory(directory, { recursive: true });
|
|
71936
|
-
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${
|
|
71936
|
+
yield* fs.writeFileString(path.join(directory, unit), `[Unit]\nDescription=Deslop ${name}\nAfter=network-online.target\n\n[Service]\nType=simple\nEnvironment=NODE_ENV=production\nEnvironment=${systemdArgument(`PATH=${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin`)}\nEnvironmentFile=-${replaceAll("%", "%%")(`${home}/.deslop/${name}.env`)}\nExecStart=${join$2(map$9(command, systemdArgument), " ")}\nRestart=on-failure\nRestartSec=3\nUMask=0077\n\n[Install]\nWantedBy=default.target\n`, { mode: 384 });
|
|
71937
71937
|
yield* systemctl("daemon-reload");
|
|
71938
71938
|
yield* systemctl("enable", unit);
|
|
71939
|
-
yield* systemctl(
|
|
71939
|
+
yield* systemctl(match$1(options?.restart === false, {
|
|
71940
|
+
onFalse: () => "restart",
|
|
71941
|
+
onTrue: () => "start"
|
|
71942
|
+
}), unit);
|
|
71940
71943
|
return `${unit} installed\n`;
|
|
71941
71944
|
});
|
|
71942
71945
|
const installUpdates = fnUntraced(function* (name, command) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/opm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1227",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/MP281X/deslop",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=26"
|
|
33
33
|
},
|
|
34
|
-
"fingerprint": "
|
|
34
|
+
"fingerprint": "b838efbe76271cec9b3c1cd63b9b9b1c8177abbb642296d7706e836e3c097614"
|
|
35
35
|
}
|