pmcf 1.61.3 → 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.3",
3
+ "version": "1.61.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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
  }