From c9009c541f34a702d9949e230eda6584e16f7022 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 14 May 2018 15:28:36 +0200 Subject: [PATCH] install_roundcube.sh: correct crontab for 'cleandb' entry. --- install_roundcube.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_roundcube.sh b/install_roundcube.sh index cecaea4..692db41 100755 --- a/install_roundcube.sh +++ b/install_roundcube.sh @@ -759,7 +759,7 @@ if ! grep -q -E "${WEBSITE_BASEDIR}/htdocs/bin/cleandb.sh" /tmp/tmp_crontab 2> / echo "" >> /tmp/tmp_crontab echo "# - Keep roundcube database slick and clean" >> /tmp/tmp_crontab echo "# -" >> /tmp/tmp_crontab - echo "37 3 * * * ${WEBSITE_BASEDIR}/htdocs/bin/cleandb.sh" >> /tmp/tmp_crontab + echo "37 3 * * * su - www-data -c \"${WEBSITE_BASEDIR}/htdocs/bin/cleandb.sh > /dev/null\" -s /bin/bash" >> /tmp/tmp_crontab crontab /tmp/tmp_crontab > $log_file 2>&1 if [[ $? -eq 0 ]]; then echo_ok