mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 00:16:22 +01:00
eselect-metasploit: add env variable check for people who forget to source their profile after install
This commit is contained in:
parent
7a0b920ccd
commit
405d481a08
2 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,11 @@
|
|||
header="$(head -n1 /usr/lib/metasploit/msfconsole)"
|
||||
ruby="${header:2}"
|
||||
|
||||
if [ -z "${MSF_LOCAL_LIB}" ] || [ -z "${MSF_DATABASE_CONFIG}" ] || [ -z "${MSF_ROOT}" ]; then
|
||||
printf "Metasploit environmental variables aren't set.\n"
|
||||
printf "Did you forget to '. /etc/profile'?\n"
|
||||
fi
|
||||
|
||||
if [ -f "/usr/lib/metasploit/Gemfile.lock" ]; then
|
||||
GEMFILE=/usr/lib/metasploit/Gemfile
|
||||
#printf "Checking for known vulnerabilities...\n"
|
||||
Loading…
Reference in a new issue