: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
test -e "$UTIL_VSERVER_VARS" || {
- echo "Can not find util-vserver installation; aborting..." >&2
+ echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
exit 1
}
. "$UTIL_VSERVER_VARS"
res=255
for i in "${vservers[@]}"; do
cnt=$[ cnt + 1 ]
- callInNamespace "$i" \
- "$_VNAMESPACE" --new -- "$_VAPT_GET_WORKER" "$i" "$@"
+
+ if pkgmgmt.isInternal "$i"; then
+ $_VSERVER "$i" exec apt-get "$@"
+ else
+ callInNamespace "$i" \
+ "$_VNAMESPACE" --new -- "$_VAPT_GET_WORKER" "$i" "$@"
+ fi
res=$?
done