diff --git a/install.sh b/install.sh index 6877f7c..1ba9d87 100644 --- a/install.sh +++ b/install.sh @@ -82,10 +82,13 @@ find /srv/www/html/roundcube -type f -exec chmod 644 {} + chmod 755 /srv/www/html/roundcube/bin/*.sh # install & enable rc systemd cron +if [[ ! -d /usr/local/lib/systemd/system ]]; then + mkdir -p /usr/local/lib/systemd/system +fi 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.* +cp systemd/rc-cron.* /usr/local/lib/systemd/system/ +chmod 644 /usr/local/lib/systemd/system/rc-cron.* systemctl enable rc-cron.timer systemctl start rc-cron.timer