mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 01: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 update \
|
||||||
&& apk upgrade \
|
&& apk upgrade \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
bash bash-completion ncurses \
|
bash bash-completion ncurses at \
|
||||||
nginx \
|
nginx \
|
||||||
mariadb mariadb-client \
|
mariadb mariadb-client \
|
||||||
ca-certificates acl \
|
ca-certificates acl \
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
#!/usr/bin/env bash
|
#!/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)
|
# Update Postscreen Whitelists (daily)
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
sleep 1d
|
at midnight -f /usr/local/bin/postwhite/postwhite
|
||||||
/usr/local/bin/postwhite/postwhite
|
|
||||||
done &
|
done &
|
||||||
|
|
||||||
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
sleep 7d
|
at midnight sunday -f /usr/local/bin/postwhite/scrape_yahoo
|
||||||
/usr/local/bin/postwhite/scrape_yahoo
|
|
||||||
done &
|
|
||||||
|
|
||||||
# Roundcube cleanup (daily)
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
sleep 1d
|
|
||||||
/usr/share/webapps/roundcube/bin/cleandb.sh
|
|
||||||
done &
|
done &
|
||||||
|
|
||||||
# # Refresh ssl keys daily
|
# # Refresh ssl keys daily
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue