Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kolenich <kolenichsj@tutanota.com>2021-09-01 23:00:01 +0300
committerSteve Kolenich <kolenichsj@tutanota.com>2021-09-01 23:00:01 +0300
commita4bee8a329c5c8880c81c22631e600f2aba35415 (patch)
tree2c6684fd1e05dced17cc6e3a8b4b4e44d283b288 /include/functions
parent798c1054d7ac5ee6df6a2cbbdbb100545a3892f7 (diff)
Added two tests using apk (Alpine Package Keeper) to check for
installed packages and packages that can be upgraded
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions b/include/functions
index 6c4d76c7..39fd9c15 100644
--- a/include/functions
+++ b/include/functions
@@ -2090,6 +2090,9 @@
elif [ -n "${XBPSBINARY}" ]; then
output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii")
exit_code=$?
+ elif [ -n "${APKBINARY}" ]; then
+ output=$(${APKBINARY} search ${package} 2> /dev/null | ${GREPBINARY} ${package})
+ exit_code=$?
else
if [ "${package}" != "__dummy__" ]; then
ReportException "PackageIsInstalled:01 (test=${TEST_NO:-unknown})"