1
0
mirror of https://github.com/jessfraz/dockerfiles.git synced 2025-04-01 18:00:43 +02:00

16 lines
240 B
Bash
Executable File

#!/bin/sh
set -e
if ! [ -e "/var/run/postgresql/*.pid" ]
then
/etc/init.d/postgresql start
fi
if ! [ -e "/usr/share/metasploit-framework/config/database.yml" ]
then
/usr/bin/msfdb init
fi
/usr/bin/msfdb start
/usr/bin/msfconsole