aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-29 10:38:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-29 10:38:36 +0000
commit4e307f139bef6d2f63b573f59da4e3376b9259e5 (patch)
tree747400d72496f114172403bfda89c339cece0b1d /testing
parent199dba2f5b6139dad76034a37628b31eb3029fcd (diff)
downloadaports-4e307f139bef6d2f63b573f59da4e3376b9259e5.tar.bz2
aports-4e307f139bef6d2f63b573f59da4e3376b9259e5.tar.xz
testing/util-vserver: fix post install script
Diffstat (limited to 'testing')
-rw-r--r--testing/util-vserver/APKBUILD2
-rw-r--r--testing/util-vserver/util-vserver.post-install2
2 files changed, 2 insertions, 2 deletions
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