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>2017-02-14 22:15:00 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-02-14 22:15:00 +0300
commitf7478bc9e04cdec5450ec5880d5b5261a3fc5e10 (patch)
tree07ee8d7c1b2285ef3207e2bda25c434faa0c318c
parent38af9121eaa04e56d135b40e968a6b02c7e7015a (diff)
Unique sort of systemctl unit files
-rw-r--r--include/tests_boot_services2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 566303d3..a943fccf 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -546,7 +546,7 @@
# Services at boot
LogText "Searching for enabled services (systemctl services only)"
- FIND=$(${SYSTEMCTLBINARY} list-unit-files --type=service | ${AWKBINARY} '{ if ($2=="enabled") { print $1 } }' | ${AWKBINARY} -F. '{ print $1 }')
+ FIND=$(${SYSTEMCTLBINARY} list-unit-files --type=service | ${SORTBINARY} -u | ${AWKBINARY} '{ if ($2=="enabled") { print $1 } }' | ${AWKBINARY} -F. '{ print $1 }')
N=0
Report "boot_service_tool=systemctl"
for I in ${FIND}; do