From 4e307f139bef6d2f63b573f59da4e3376b9259e5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 29 Oct 2009 10:38:36 +0000 Subject: testing/util-vserver: fix post install script --- testing/util-vserver/APKBUILD | 2 +- testing/util-vserver/util-vserver.post-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/util-vserver') diff --git a/testing/util-vserver/APKBUILD b/testing/util-vserver/APKBUILD index f66a5355ba..030994d9f0 100644 --- a/testing/util-vserver/APKBUILD +++ b/testing/util-vserver/APKBUILD @@ -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" diff --git a/testing/util-vserver/util-vserver.post-install b/testing/util-vserver/util-vserver.post-install index 3d3326a7af..9c8aad1e4c 100644 --- a/testing/util-vserver/util-vserver.post-install +++ b/testing/util-vserver/util-vserver.post-install @@ -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 -- cgit v1.2.3