Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
docker
mailman
Commits
a92625a3
Commit
a92625a3
authored
Aug 30, 2019
by
putro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added clean-heldmsg cron
parent
e53dd8b4
Pipeline
#4296
passed with stage
in 1 minute and 57 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
Dockerfile
Dockerfile
+1
-0
build.sh
build.sh
+2
-0
clean-heldmsg
clean-heldmsg
+6
-0
conf/chaperone.d/clean-heldmsg-cron.conf
conf/chaperone.d/clean-heldmsg-cron.conf
+5
-0
No files found.
Dockerfile
View file @
a92625a3
...
...
@@ -4,6 +4,7 @@ COPY conf /tmp/conf
COPY
build.sh /tmp/build.sh
COPY
start.sh /start.sh
COPY
apply-forced-params /usr/local/bin/apply-forced-params
COPY
clean-heldmsg usr/local/bin/clean-heldmsg
COPY
sendmail.py /usr/sbin/sendmail
RUN
/tmp/build.sh
&&
rm
-fr
/tmp/build.sh /tmp/conf
...
...
build.sh
View file @
a92625a3
...
...
@@ -99,6 +99,8 @@ mkdir /var/empty
chmod
755 /usr/local/bin/apply-forced-params
chmod
755 /usr/local/bin/clean-heldmsg
chmod
755 /usr/sbin/sendmail
# Install python-mailman-api.
...
...
clean-heldmsg
0 → 100755
View file @
a92625a3
#!/bin/sh
test
-d
/data/data
||
exit
0
test
-e
/var/lib/mailman/bin/discard
||
exit
0
find /data/data/
-name
heldmsg
\*
-mtime
+20
-print
| xargs
-n
1 /var/lib/mailman/bin/discard
>
/dev/null 2>&1
exit
0
conf/chaperone.d/clean-heldmsg-cron.conf
0 → 100644
View file @
a92625a3
clean
-
heldmsg
-
cron
.
service
: {
type
:
cron
,
interval
:
"50 4 * * *"
,
command
:
"/usr/local/bin/clean-heldmsg"
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment