22#
33# A script for installing and running lynis with recommended options.
44#
5- # Version: v1.0.5
5+ # Version: v1.0.6
66# License: MIT License
7- # Copyright (c) 2020-2023 Hunter T. (StrangeRanger)
7+ # Copyright (c) 2020-2024 Hunter T. (StrangeRanger)
88#
99# #######################################################################################
10- # ### [ Variables ]
10+ # ###[ Script Wide Variables ]###########################################################
1111
1212
1313green=" $( printf ' \033[0;32m' ) "
@@ -16,9 +16,7 @@ red="$(printf '\033[1;31m')"
1616nc=" $( printf ' \033[0m' ) "
1717
1818
19- # #### End of [ Variables ]
20- # #######################################################################################
21- # ### [ Prepping ]
19+ # ###[ Prepping ]########################################################################
2220
2321
2422# # Check if the script was executed with root privilege.
@@ -29,9 +27,7 @@ if [[ $EUID != 0 ]]; then
2927fi
3028
3129
32- # ### End of [ Prepping ]
33- # #######################################################################################
34- # ### [ Main ]
30+ # ###[ Main ]############################################################################
3531
3632
3733read -rp " We will now download lynis. Press [Enter] to continue."
@@ -54,7 +50,3 @@ chown -R root:root lynis
5450echo -e " \n${green} Lynis has been downloaded to your system"
5551echo -e " ${cyan} To perform a system scan with lynis, execute the following command in" \
5652 " the lynis root directory: sudo ./lynis audit system${nc} "
57-
58-
59- # ### End of [ Main ]
60- # #######################################################################################
0 commit comments