From f16d7d0c2cbe1d85e8c5ef0b36e4104fac333b75 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 20 Apr 2021 14:34:15 -0700 Subject: [PATCH] add systemd cron --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 525e1a8..19e9c8a 100644 --- a/install.sh +++ b/install.sh @@ -67,5 +67,13 @@ chmod 755 /srv/www/html/roundcube/bin/*.sh # load roundcube database tables mysql vmail < rc.sql +# install & enable rc systemd cron +cp sbin/rc-cron.sh /usr/local/sbin/ +chmod 755 /usr/local/sbin/rc-cron.sh +cp systemd/rc-cron.* /usr/lib/systemd/system/ +chmod 644 /usr/lib/systemd/system/rc-cron.* +systemctl daemon-reload +systemctl start rc-cron.timer + echo "Roundcube webmail installed." echo "You can optionally set the vars 'product_name' & 'support_url' in /srv/www/html/roundcube/config/config.inc.php"