Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/automation/cache/update_module_cache.sh
24699 views
1
#!/bin/sh -ex
2
3
if [ ! -f "msfconsole" ]; then
4
echo "Missing 'msfconsole' the tool should only be run from the root of the repository.'"
5
exit 1
6
fi
7
8
DOCKER_EXEC=`which docker`
9
10
if [ -z "$DOCKER_EXEC" ]; then
11
echo "Docker is required to run this tool."
12
exit 1
13
fi
14
15
IMG='metasploitframework/metasploit-framework:latest'
16
17
docker run --rm=true --tty \
18
--volume=`pwd`:/r7-source \
19
--workdir=/r7-source ${IMG} \
20
/bin/sh -c 'time ./tools/automation/cache/build_new_cache.sh'
21
22