mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
16 lines
240 B
Bash
16 lines
240 B
Bash
|
#!/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
|