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:
authorMichael Boelen <michael.boelen@cisofy.com>2022-02-10 14:00:38 +0300
committerGitHub <noreply@github.com>2022-02-10 14:00:38 +0300
commitcd433e928efe334bbb4b86fb5833f4d6ebd62f28 (patch)
tree6fd12dccf0e166282493bc5573298293e8a746b2 /include/functions
parente0b5dcf7d467f89b5c3896c67bd5743e9e3dfb95 (diff)
parenteb46f39c447b45db8198b4cf613c4129873492e1 (diff)
Merge pull request #1205 from kolenichsj/alpine_apk
Adding support for Alpine Package Keeper
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 de36ed11..5b211707 100644
--- a/include/functions
+++ b/include/functions
@@ -2098,6 +2098,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})"