mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
16 lines
240 B
Bash
Executable File
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
|