pmcf 1.61.2 → 1.61.4

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": "1.61.2",
3
+ "version": "1.61.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -81,7 +81,7 @@ export class Cluster extends Host {
81
81
  cfg.push(` ${cluster.rawAddress}`);
82
82
  cfg.push(" }");
83
83
  cfg.push(` virtual_router_id ${this.routerId}`);
84
- cfg.push(" priority 255");
84
+ cfg.push(` priority ${this.priority}`);
85
85
  cfg.push(" advert_int 5");
86
86
  cfg.push(" authentication {");
87
87
  cfg.push(" auth_type PASS");
package/src/host.mjs CHANGED
@@ -53,8 +53,8 @@ const HostTypeDefinition = {
53
53
  };
54
54
 
55
55
  export class Host extends Base {
56
- postinstall = [];
57
56
  serial;
57
+ priority = 1;
58
58
  #services = [];
59
59
  #extends = [];
60
60
  #networkInterfaces = new Map();
@@ -1,4 +1,5 @@
1
- config_locales()
1
+
2
+ post_install()
2
3
  {
3
4
  jq -r .locales[] /etc/location/location.json|while read locale
4
5
  do
@@ -9,12 +10,13 @@ config_locales()
9
10
  localectl set-locale LANG=$(jq -r .locales[0] /etc/location/location.json)
10
11
  }
11
12
 
12
- post_install()
13
- {
14
- config_locales
15
- }
16
-
17
13
  post_upgrade()
18
14
  {
19
- config_locales
15
+ jq -r .locales[] /etc/location/location.json|while read locale
16
+ do
17
+ sed -i -e "s/^#$locale/$locale/" /etc/locale.gen
18
+ done
19
+
20
+ locale-gen
21
+ localectl set-locale LANG=$(jq -r .locales[0] /etc/location/location.json)
20
22
  }
package/types/host.d.mts CHANGED
@@ -143,8 +143,8 @@ export class Host extends Base {
143
143
  };
144
144
  };
145
145
  };
146
- postinstall: any[];
147
146
  serial: any;
147
+ priority: number;
148
148
  set depends(value: Set<any>);
149
149
  get depends(): Set<any>;
150
150
  set provides(value: Set<any>);