From 9e0a1b4d25fbb08198454002ed673bf83f1d40f7 Mon Sep 17 00:00:00 2001 From: f Date: Sun, 3 Jul 2022 02:05:23 -0300 Subject: [PATCH] mmmonit 0.2.0 --- Dockerfile | 2 ++ mmmonitd.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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)