mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-17 21:36:19 +00:00
Add 'at' daemon
This commit is contained in:
parent
ced29ae9f8
commit
ba1802d08c
2 changed files with 12 additions and 12 deletions
|
|
@ -23,7 +23,7 @@ RUN printf '%s\n' 'https://dl-cdn.alpinelinux.org/alpine/edge/main/' \
|
|||
&& apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add --no-cache \
|
||||
bash bash-completion ncurses \
|
||||
bash bash-completion ncurses at \
|
||||
nginx \
|
||||
mariadb mariadb-client \
|
||||
ca-certificates acl \
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Start at daemon
|
||||
atd
|
||||
|
||||
# Roundcube cleanup (daily)
|
||||
while true
|
||||
do
|
||||
at midnight -f /usr/share/webapps/roundcube/bin/cleandb.sh
|
||||
done &
|
||||
|
||||
# Update Postscreen Whitelists (daily)
|
||||
while true
|
||||
do
|
||||
sleep 1d
|
||||
/usr/local/bin/postwhite/postwhite
|
||||
at midnight -f /usr/local/bin/postwhite/postwhite
|
||||
done &
|
||||
|
||||
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
||||
while true
|
||||
do
|
||||
sleep 7d
|
||||
/usr/local/bin/postwhite/scrape_yahoo
|
||||
done &
|
||||
|
||||
# Roundcube cleanup (daily)
|
||||
while true
|
||||
do
|
||||
sleep 1d
|
||||
/usr/share/webapps/roundcube/bin/cleandb.sh
|
||||
at midnight sunday -f /usr/local/bin/postwhite/scrape_yahoo
|
||||
done &
|
||||
|
||||
# # Refresh ssl keys daily
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue