mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/util-vserver: fix post install script
This commit is contained in:
parent
199dba2f5b
commit
4e307f139b
@ -2,7 +2,7 @@
|
||||
pkgname=util-vserver
|
||||
pkgver=0.30.216_pre2849
|
||||
_realver=0.30.216-pre2849
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Linux-VServer admin utilities"
|
||||
url="http://www.nongnu.org/util-vserver/"
|
||||
license="GPL"
|
||||
|
||||
@ -5,7 +5,7 @@ if [ -f /etc/vservers/.defaults/rlimits/nproc ]; then
|
||||
fi
|
||||
|
||||
# calculate the nproc limit from amount of ram
|
||||
memtotal=$(awk '$1 == "MemTotal:" {print $2}' /proc/meminfo 2>/dev/null
|
||||
memtotal=$(awk '$1 == "MemTotal:" {print $2}' /proc/meminfo 2>/dev/null)
|
||||
nproc=$(( ${memtotal:-524288} / 256 ))
|
||||
|
||||
# set a "sane" default nproc limit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user