From 9cf61bb378ed4920958eb3327f05694b4557923e Mon Sep 17 00:00:00 2001 From: Alexis6307 Date: Thu, 20 Jun 2019 10:42:00 +0200 Subject: [PATCH] Update dockerfile Fix for msfdb init. Docker uses Debian image without systemctl, service command is better for compatibility. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f9ac82b..6a33655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,8 @@ RUN set -x \ && apt-get -yqq dist-upgrade \ && apt-get clean +RUN sed -i 's/systemctl status ${PG_SERVICE}/service ${PG_SERVICE} status/g' /usr/bin/msfdb && msfdb reinit + RUN \ apt-get --yes install git \ && mkdir -p security \