Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /usr/local/lynis/default.prf path to tPROFILE_TARGETS array #31

Closed
centminmod opened this issue Mar 10, 2015 · 1 comment
Closed
Assignees

Comments

@centminmod
Copy link

Official README https://github.com/CISOfy/Lynis/blob/master/README suggests to create directory at /usr/local/lynis for installation but this path is not checked for in lynis itself ?

I symlinked lynis to /usr/bin/lynis so if you run lynis by itself it hangs as it can't find default.prf

so maybe add /usr/local/lynis/default.prf path to tPROFILE_TARGETS array ?

# Try to find a default profile file, if none is specified
if [ "${PROFILE}" = "" ]; then
    tPROFILE_TARGETS="/usr/local/etc/lynis/default.prf /etc/lynis/default.prf ./default.prf"
    for I in ${tPROFILE_TARGETS}; do
        if [ -f ${I} ]; then PROFILE=${I}; fi
    done
fi
@mboelen mboelen self-assigned this Mar 17, 2015
@mboelen
Copy link
Member

mboelen commented Mar 17, 2015

Thanks, path has added.

@mboelen mboelen closed this as completed Mar 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants