diff --git a/Dockerfile b/Dockerfile index a249bfb..b8d1199 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ ARG BASE_IMAGE=sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " +ENV DATABASE_URL "/srv/mmmonit.sqlite3" + RUN apk add --no-cache mmmonit daemonize COPY ./monit.conf /etc/monit.d/mmmonit.conf diff --git a/mmmonitd.sh b/mmmonitd.sh index 2b0f2f0..d409cca 100755 --- a/mmmonitd.sh +++ b/mmmonitd.sh @@ -10,7 +10,6 @@ usr=${USER:-nobody} case $1 in start) chown -R ${usr}:${usr} ${dir} - install -dm 750 -o ${usr} -g ${usr} ${dir}/storage ${dir}/storage/xml daemonize -a -e ${log} -o ${log} -c ${dir} -p ${pid} -l ${pid} -u ${usr} /usr/bin/mmmonit -b :: -p 3000 ;; stop)