arui-scripts 12.4.1 → 12.5.0-alfa.0

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.
@@ -18,8 +18,12 @@ cat ./nginx.conf \\
18
18
  | sed 's/~~\\([a-zA-Z0-9_-]\\{1,\\}\\)~~/$\\1/g' \\
19
19
  > /etc/nginx/conf.d/default.conf
20
20
 
21
- # Достаем лимит памяти из cgroup, это то, как его докер задает. https://shuheikagawa.com/blog/2017/05/27/memory-usage/
22
- max_total_memory=$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)
21
+ # Достаем лимит памяти из cgroup, это то, как его докер задает.
22
+ if [[ -f /sys/fs/cgroup/cgroup.controllers ]]; then
23
+ max_total_memory=$(cat /sys/fs/cgroup/memory.max)
24
+ else
25
+ max_total_memory=$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)
26
+ fi
23
27
  # Самой nodejs мы не можем отдать совсем всю память, операционная система+nginx все же требуют какого то количества.
24
28
  # Поэтому мы вычитаем 100мб на нужды ос
25
29
  node_memory_limit="$(($max_total_memory / 1024 / 1024 - 100))"
@@ -792,7 +792,7 @@
792
792
  "affectsGlobalScope": false
793
793
  },
794
794
  "../src/templates/start.template.ts": {
795
- "version": "545c8001c5ff6d1dbcf46c60b061cd8a36d0a4a79e72d8c2f0653341ce96264a",
795
+ "version": "880f33b82d22e208683f9096f25507b29f038c0ac42858f4bae39edb1dd988c6",
796
796
  "signature": "0fffbf1a5f54522ff7b89592bab1cf72966d7bdc613d52b0087717fcfec14b29",
797
797
  "affectsGlobalScope": false
798
798
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "12.4.1",
3
+ "version": "12.5.0-alfa.0",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "license": "MPL-2.0",