diff options
Diffstat (limited to 'unmaintained/roundcubemail/roundcubemail.daily')
-rw-r--r-- | unmaintained/roundcubemail/roundcubemail.daily | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unmaintained/roundcubemail/roundcubemail.daily b/unmaintained/roundcubemail/roundcubemail.daily new file mode 100644 index 0000000000..5a498d3300 --- /dev/null +++ b/unmaintained/roundcubemail/roundcubemail.daily @@ -0,0 +1,10 @@ +#!/bin/ash +set -eu +set -o pipefail + +# An awk program to add timestamp prefix to all logged lines. +AWK_LOG_PREFIX='{ print strftime("%Y-%m-%d %H:%M:%S:"), $0; fflush(); }' + +su roundcube -s /bin/sh -c '/usr/share/webapps/roundcube/bin/cleandb.php' 2>&1 \ + | awk "$AWK_LOG_PREFIX" \ + | tee -a /var/log/roundcube/cron.log |